deleting stale print jobs via WMI

A few years ago I worked in an environment where for whatever reason some jobs\documents simply wouldn't print. These jobs\documents would sit in the queues for months and eventually cause the spooler to hang. I came up with the script below to collect all current jobs and if they were more than an hour old delete them. The script logs what it does to a local text file.