@echo off
cd /d "%~dp0"
python -B "%~dp0ad_gui.py"
if errorlevel 1 (
  echo.
  echo AD GUI failed.
  echo If pyserial is missing, run:
  echo python -m pip install -r "%~dp0requirements-ad-terminal.txt"
  echo.
  pause
)
