@echo off
cd /d "%~dp0"
if /i "%~1"=="db" (
  powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\stop-server.ps1" -Db
) else (
  powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\stop-server.ps1"
)
echo.
pause
