Setting execution policies on Windows PowerShell
This command will display your current execution policy. This is worth noting if you wish to revert back at a later point.
This command will set a policy that requires that all scripts and configuration files downloaded from the Internet be signed by a trusted publisher. You can replace ‘RemoteSigned’ with your desired execution policy name to alter the policy applied.
This command will set the execution policy to the default setting for windows. This may however not be the default for your environment.