A long time ago, in a network application, I wrote a file on the server with the workstation's name and the commands I wanted it to execute. In the program I ran on the workstations, I occasionally checked whether the file existed and, if so, executed the commands there. A solution like this might be suitable for your case.
Ciao
Franz