I have a requirement where I need to be notified when a scheduled Powershell script fails at any point of time. I would like to configure a Nagios service for this, and need someone to point me in the right direction.

Cheers.

Shadab