If you need to issue a string of commands in a network a task scheduler is what you need. This allows you to put commands in the message queue and the task queue so each process is done in a consecutive manner.