@echo off
setlocal
chcp 65001 >nul
call "%~dp0service.bat" stop
set "EXIT_CODE=%ERRORLEVEL%"
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0service.ps1" -Action message -MessageAction stop -MessageExitCode %EXIT_CODE%
pause >nul
exit /b %EXIT_CODE%
