@echo off REM heartbeat.cmd — site1.erralert.com check-in from cmd.exe (no script-exec policy needed) powershell.exe -NoProfile -Command "try { Invoke-RestMethod -Uri 'YOUR_URL/heartbeat' -Method Post -Body (@{hostname=$env:COMPUTERNAME} | ConvertTo-Json -Compress) -ContentType 'application/json' -TimeoutSec 15 | Out-Null; exit 0 } catch { exit 1 }"