# Bypass the PowerShell execution policy
The PowerShell execution policy can be bypassed on a case-by-case basis using `-ex bypass`; for example:
```powershell
powershell -ex bypass -File $FILE.ps1
```
> [!tip]
> The `-ex bypass` flag *isn't* necessary when executing code directly with `-c`.
This can also be set temporarily within a shell:
```powershell
Set-ExecutionPolicy Bypass -Scope process -Force
```
%%
![[Bypass the PowerShell execution policy - additional information]]
%%
However, this will not bypass other protections, in particular AMSI!