@echo off rem Remove Resctriction on running scripts powershell.exe -Command "& {Set-ExecutionPolicy -scope Currentuser -executionPolicy Unrestricted}" rem Run the script that was passed as an argument. powershell.exe %~dp0%1