Fun fact: enabling Windows 10 Developer Mode turns this on by default.
> Set-ExecutionPolicy -Scope CurrentUser Unrestricted
> path\to\foo.ps1
# opt.: set it back
> Set-ExecutionPolicy -Scope CurrentUser Default
- run PowerShell as Administrator
# Set-ExecutionPolicy Unrestricted
- user PowerShell:
> path\to\foo.ps1
- (opt.) reset policy in admin shell:
# Set-ExecutionPolicy Restricted