@echo off
setlocal
title Fuel Dispatch Pro setup
net session >nul 2>&1
if not %errorLevel%==0 (
  echo Requesting administrator permission so Tailscale can be installed...
  powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
  exit /b
)
cd /d "%~dp0"
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0Setup.ps1"
if errorlevel 1 pause
endlocal
