How to send push notifications with PowerShell
Updated on March 29, 2026
Signalgrid makes it straightforward to send notifications from PowerShell. The platform uses a simple model built around your client_key, a target channel, and a few core fields such as title, body, type, and optional critical.
PowerShell is a strong option for operational tasks, scheduled jobs, and Windows-based automation where a notification should be sent after a script runs.
The following example sends a simple notification with PowerShell.
$payload = @{
client_key = $env:SIGNALGRID_CLIENT_KEY
channel = $env:SIGNALGRID_CHANNEL
title = "PowerShell Notification"
body = "Sent from an admin script"
type = "INFO"
}
$response = Invoke-RestMethod -Method Post -Uri "https://api.signalgrid.co/v1/push" -Body $payload
$responseclient_keychanneltitlebodytypeINFO, WARN, SUCCESS, or CRITcriticalKeeping credentials outside your code is usually the better move.
$env:SIGNALGRID_CLIENT_KEY="your_client_key"
$env:SIGNALGRID_CHANNEL="your_channel_token"PowerShell is a strong option for operational tasks, scheduled jobs, and Windows-based automation where a notification should be sent after a script runs.