how to enable powershell script code example
Example 1: powershell enable scripts
Set-ExecutionPolicy unrestricted
Example 2: running scripts is disabled on this system
PS C:\> Set-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy unrestricted
PS C:\> Set-ExecutionPolicy RemoteSigned