MS Script run on the server

I have an MS Script that runs when a button is clicked inside Invoice Data Entry.  When the script is completed I want it to click a hidden button for me to finish up the Invoice.  This used to work just fine when the script was run on the client, but now that it's run on the server it is no longer working.  I'm assuming I need to go about having a button clicked on the client a different way now, but am lost as to how to accomplish that.  Here is how it's doing it now.

Set sh = CreateObject("WScript.Shell")

sh.AppActivate("*S/O Invoice Data Entry")

sh.SenKeys "%K"

Set sh = Nothing

Any help would be appreciated.