Both 32-bit and 64-bit versions of PowerShell are installed by default on a 64-bit platforms.
By default, when invoked, the Powershell arquitecture matches the one from the application it is invoked from. So, when launching it from a 64bit application the 64bit version of Powershell is invoked and when launching it from a 32bit application the 32bit version of Powershell is invoked.
As Client Automation is a 32bit application, the Powershell launched from within a SD Job is the 32bit one, which may have no access to 64bit resources needed by the script itself, raising the errors due to it.
In order to workaround this problem, force the execution of the 64bit version of Powershell from within the SD Job.