Powershell Script for UserProfile job fail

How do I create a powershell script to notify me if and when my incremental user profile job fails?

Parents
No Data
Reply Children
No Data