Simple PowerShell script to export alerts to the file system using the [xml] cast and the Save method.

Relies on $SwisConnection variable as defined in Practical Examples: Authenticate.
Watch Practical Examples Using the Orion API to see the step-by-step process of this and other scripts for the SolarWinds Platform API.