The script itself works. It also works as system account (tested with psexec). The problem occurs when the script gets deployed via DSM. I get an error message that "Import-StartLayout" is not recognized as a Cmdlet ...
I called Import-Startlayout within a script (.ps1) --> I get the above error ...
I called it this way: powershell -Command "Import-StartLayout -LayoutPath ... " --> I get the above error ...