@echo off
setlocal
set "PREFERRED_NODE="
if not "%KIWI_CONTROL_NODE%"=="" set "PREFERRED_NODE=%KIWI_CONTROL_NODE%"
if not "%SHREY_JUNIOR_NODE%"=="" set "PREFERRED_NODE=%SHREY_JUNIOR_NODE%"
if defined PREFERRED_NODE (
  "%PREFERRED_NODE%" "%~dp0..\lib\cli.js" %*
  exit /b %ERRORLEVEL%
)
node "%~dp0..\lib\cli.js" %*
