@echo off cd /d "%~dp0" net session >nul 2>&1 if errorlevel 1 ( powershell -Command "Start-Process '%~f0' -Verb RunAs -WorkingDirectory '%~dp0'" exit /b ) powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\build.ps1" %*