@@ -0,0 +1,10 @@
@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" %*
The note is not visible to the blocked user.