@echo off
chcp 65001 >nul
setlocal
cd /d "%~dp0"
set "NODE_BIN=%~dp0node.exe"
if not exist "%NODE_BIN%" set "NODE_BIN=node"
echo Generate a one-time pairing code in the management console first.
"%NODE_BIN%" worker.js setup %*
if errorlevel 1 pause
endlocal
