We're mostly a Linux shop, but we have a print server running Windows Server 2008, and use an application called Print Helper to print invoices. I need to find a way to check that this application is running, and automatically restart it if it's not.
On Linux I'd probably do this with a small shell script and a cron job, but I'm not sure how to accomplish this on Windows Server. I'm fairly confident I could do it in Perl using Proc::Background, but I'm reluctant to install Perl just for one script, and while I'm sure it can be done using something like PowerShell, it's not really a worthwhile use of my time to learn PowerShell for one small task. Tasklist seems to do some of what I want in that it can let you know if a specific process is running or not, but I'm not sure how I could go from there to automatically restarting the application if it's crashed.
Any help gratefully received!