@echo off
REM Wrapper for Atlas cron .mjs scripts.
REM Sets working directory then invokes node with the script name passed as arg 1.
REM
REM Usage:
REM   run-cron.bat cron_stage_stuck_detector.mjs
REM
REM Logs to a sibling .log file next to atlas-prod.log.

cd /d C:\PKA\Atlas\app
node "scripts\%~1" >> "C:\PKA\Atlas\cron-%~n1.log" 2>&1
