Set-ExecutionPolicy RemoteSigned # to set the policy to RemoteSigned.
Set-ExecutionPolicy Unrestricted # to set the policy to Unrestricted.
Get-ExecutionPolicy # to verify the current settings for the execution policy.
# To bypass the execution policy for a single file, inside powershell type>
powershell -ExecutionPolicy Bypass -File <insert script filename here>
# To bypass the execution policy for a single file, inside powershell type>
powershell -ExecutionPolicy Bypass -File <insert script filename here>