I’m currently working on a project that involves sending alerts and notifications to users on Windows 11 systems. During development, I learned that—for local testing purposes—it’s possible to generate toast notifications using built-in PowerShell functionality. Specifically, the ToastNotificationManager and CreateToastNotifier APIs make it straightforward to display dead simple, native notifications without any external dependencies. $body = 'Hello from PowerShell! Behold, a toast notification.' $toastXml = [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText01) $toastXml.SelectSingleNode('//text[@id="1"]').InnerText = $body $appId = 'App' $toast = [Windows.UI.Notifications.ToastNotification]::new($toastXml) [Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($appId).Show($toast) Of course, y...