Double-click the .bat file instead of the .ps1 file. .bat files always run (no restrictions) The -ExecutionPolicy Bypass flag overrides the policy just for this script