How to Fix .ps1 Cannot be Loaded Error | Set Execution Policy

If you are on Windows and are trying to run your npm or pnpm scripts, chances are you might encounter an error that says .ps1 cannot be loaded. This is a PowerShell restrictive error...