Windows Powershell Monitor Template

I have a new alert for a windows PowerShell script alert from a log file.   Does anyone know how/if I can pipe the output of the alert output in a variable into the alert (email etc)?

Sample output:

Output: ==============================================
Statistic: 1
Message: Total number of lines that match search criteria: 1. Lines that have search string: Return Code: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.