Windows PowerShell script fails to run and reporting error... "cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about signing".
You are getting this error because the security settings built into Windows PowerShell include something called the "execution policy".
The execution policy determines how (or if) PowerShell runs scripts. By default, PowerShell execution policy is set to Restricted; that means that scripts including those you write yourself would not run.
For example, PowerShell 1.0 installs to the directory;
%SystemRoot%\system32\windowspowershell\v1.0 - for 32-bit version, and to
%SystemRoot%\system64\windowspowershell\v1.0 - for 64-bit version.
If you are running on a 64-bit operating system, there is a 32-bit version of PowerShell and a 64-bit version of PowerShell.
The script packager is a 32-bit program, so it uses the 32-bit version of PowerShell. When you launch the script directly from PowerShell, it uses the 64-bit version of PowerShell.
Make sure both versions have the correct execution policy.
If the version of PowerShell is unknown the following process is used to verify.