You would need multiple sections each one calling the next one and then restarting at the end. i.e.: command file 1 = remove PC from domain, enter reg for runonce command2 and then call reboot. command file 2 = add runonce entries to call command 3 and then shutdown PC. This is chaining them together so that the first one calls the next one. I am sure there are better ways to do it but that is what first comes to mind for me.