Running powershell scripts on the system is typically restricted so the usual way to bypass it is to:
- run powershell -ep <policy> and its variants
- use Set-ExecutionPolicy <policy> after launching powershell.exe
There is also one more option – use an environment variable called PSExecutionPolicyPreference.
See screenshot: