examples/quickstart.ps1

# Example: scheduled heartbeat every 5 minutes via Task Scheduler or cron
Import-Module ScriptBeacon -Force

# Configure once
Set-SBConfig -BeaconId '00000000-0000-0000-0000-000000000000' -BaseUri 'https://api.scriptbeacon.io' -Persist

# Send an "alive" heartbeat and compute next run
Send-SBHeartbeat -Alive -Every (New-TimeSpan -Minutes 5)

# Log a one-liner
Beam-Info "Job completed successfully"