- PowerShell
- Open Start.
- Search for "PowerShell", right-click the top-result and click the Run as administrator option.
- Type the following command to allow scripts to run and press Enter:
Set-ExecutionPolicy RemoteSigned - Type A and press Enter (if applicable).
- Find the path to your script and press Enter
Abridged from: https://www.windowscentral.com/how-create-and-run-your-first-powershell-script-file-windows-10