running powershell scripts disabled code example
Example 1: PowerShell says “execution of scripts is disabled on this system.”
Set-ExecutionPolicy RemoteSigned
Example 2: PowerShell says “execution of scripts is disabled on this system.”
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser