Powershell - set policy permissions

The default PS policy level is Restricted. To return policy to this safe state:

Set-ExecutionPolicy Restricted

To set the policy to allow signed scripts - which is a good starting position:

Set-ExecutionPolicy AllSigned

To set the policy to something more forgiving:

Set-ExecutionPolicy RemoteSigned