set-executionpolicy executionpolicy remotesigned code example
Example 1: Windows ExecutionPolicy
Set-ExecutionPolicy RemoteSigned
Example 2: how to change execution policy powershell
Set-ExecutionPolicy -ExecutionPolicy <PolicyName> # general syntax
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned # for example