The Set-ExecutionPolicy command of PowerShell is banned, so I can NOT run like this:
PS> .\\script.ps1 (enter)
Is there another way to r
The easiest silliest way around this is just:
gc .\script.ps1 | iex
This works in PowerShell and doesn't care about ExecutionPolicy. Just make sure that you are careful with newlines. Keep {}s and similar on the same line, using ;s where needed.
ExecutionPolicy
{}
;