I don't think trying to figure out a way to do what you want isn't the best way to go about it. I'd use a software component and take as a parameter the IPs of the other nodes being deployed and run in a check loop to ensure they're all available. Once they're all available, begin the software component that installs the AD role and other tools.
↧