PowerShell
For Windows scheduled tasks or PowerShell-based automation:
backup.ps1
$PingUrl = "https://watchcron.com/ping/your-uuid" Invoke-RestMethod "$PingUrl/start" try { # Your task here Backup-SqlDatabase -ServerInstance "localhost" -Database "mydb" Invoke-RestMethod $PingUrl } catch { Invoke-RestMethod "$PingUrl/fail" -Method POST -Body $_.Exception.Message throw }
Windows Task Scheduler (one-liner)
powershell -Command "C:\scripts\backup.ps1; Invoke-RestMethod 'https://watchcron.com/ping/your-uuid'"