Procedure to call upon another computer.

Is it possible for me to run a procedure on machine and within that same procedure, run it on on another machine? Or ran another procedure from a procedure to another computer?

For example. An application requires services to start and stop in a particular order and the ONLY way to do that is to stop xyz service (can be an application too) on computer1. then on computer2 stop service xyz. From there, get back on computer1 and restart xyz service then go back on comptuer2 and start xyz service. It needs to be done in this order or the application won't work.

You have posted to a forum that requires a moderator to approve posts before they are publicly available.

The built-on SC command in windows can remotely control services on other machines. /since adding a "delay" can bit hit and miss (service might not stop immediately, or not stop at all), just execute SC \\computername STOP servicename in your script, instead. Obviously you need appropriate security rights to do this and probably some firewall stuff also to allow remote commands.

It's another option, anyhow, if the 'linked scripts' approach isn't working for you.

You have posted to a forum that requires a moderator to approve posts before they are publicly available.