Ensure your system's PowerShell execution policy allows the execution of scripts. You can check the policy with Get-ExecutionPolicy . If necessary, you can change it with Set-ExecutionPolicy , for example, to allow script execution with Set-ExecutionPolicy RemoteSigned .