PowerShell's "ExecutionPolicy" allows for restricting all scripts from running, only allowing signed scripts, etc - see this article for reference.
However, if I simply do:
PowerShell -ExecutionPolicy Bypass -file MyScript.ps1
... I have effectively circumvented the configured Execution Policy anyway, and the script is successfully run (even with a completely 'Restricted' default policy configured).
What's the point in having different levels of policies available, if all I have to do is send a switch to bypass it, and it'll succeed? Am I missing somewhere that 'Bypass' won't work under specific circumstances? So far, I've not found an execution policy that wouldn't let it slip right on by anyway.
(Sincerest apologies if this were better suited for StackOverflow, but I came here first, since it deals with security policies. I've searched a while to find an answer on this, but I can't seem to find a definitive explanation.)