If you want to execute code on ANOTHER machine you need to a remote shell of some sort. If you search for "execute code remote machine" you'll see a lot of discussion about this.
WMI is yet another platform you can hook into.
http://blogs.technet.com/b/heyscriptingguy/archive/2005/07/01/how-can-i-launch-two-applications-wait-until-one-program-ends-and-then-close-the-other.aspx