@echo off setlocal set PS1=%~dp0scripts\run_hls_windows.ps1 if not exist "%PS1%" ( echo ERROR: script not found: %PS1% exit /b 1 ) powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%PS1%" -SourceHlsDir "%~dp0." if errorlevel 1 exit /b %errorlevel% endlocal