@echo off chcp 65001 >nul :: Check for admin rights net session >nul 2>&1 if %errorLevel% == 0 ( goto :run_script ) else ( echo Requesting administrator privileges... echo. :: Restart as administrator powershell -Command "Start-Process '%~f0' -Verb RunAs" exit /b ) :run_script echo. echo ======================================== echo StreamDeck Plugin Auto Deploy echo ======================================== echo. echo Running PowerShell deployment script... echo. REM Run PowerShell script with admin rights powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0deploy-plugin.ps1'" if %ERRORLEVEL% NEQ 0 ( echo. echo ERROR: Deployment failed! echo. pause exit /b 1 ) echo. echo Complete! Window will close in 2 seconds... timeout /t 2 /nobreak >nul