How to Allow Scripts to Run in PowerShell using PowerShell Open PowerShell as administrator. In the PowerShell window, type the following command and press Enter: Set-ExecutionPolicy RemoteSigned. If prompted, press A to confirm the action. More items... Mar 19, 2023