For system, network and cloud administrators
In order for PowerShell scripts to be run, a less restrictive policy must be set. Like “Remote signed”, for example. In order to change the current PowerShell execution script policy to remote signed for the current user, type:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser