@echo off
title Install Paychek Safeguard addon
cd /d "%~dp0"
echo.
echo Close NinjaTrader first.
echo.
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0_technique\NinjaTrader\Install-NinjaAddon.ps1"
set ERR=%ERRORLEVEL%
if not "%ERR%"=="0" (
  echo.
  echo Install script exited with code %ERR%.
  pause
)
exit /b %ERR%
