PowerShell: Check for failed timer jobs in SharePoint 2010

The following script will check every 15 minuters the timer jobs for a specific webapplication and return all failures!