Found a fix for this, perhaps there are better methods, but this one works.

Firstly, create a shortcut to the application you want to run, and put this shortcut in the windows directory on your webserver... then you just need to run this code in your script to execute the application you want.