title: Powershell Script- Send automatatic email when The Task in Task Scheduler Fails to Run
body: <p>I automate a BAT file to powershell script. The Task is set to run Every 1 hr, Daily to backup the database.</p>
  <p>I need to set an auto e-mail generator only if the Task fails to run.</p>
  <p>Can you help how can I do this? Should I use compare_object to define it.</p>
  <p>Any help is appreciated.</p>
  <p>thank You!!</p>