To enable the running of scripts:

Run powershell.exe with admin rights and:

Set-ExecutionPolicy unrestricted

And answer A.

More:

powershell.exe -noprofile -executionpolicy bypass -file .\my_script.ps1

Or using reg:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mic......