PowerShell
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'"