I am trying to use a workflow to perform part of a process then reboot then be able to continue and complete the process. The test code I have below is all completing before the reboot. What am I missing!
WorkflowNew-ComputerSetup {
New-Itemc:\temp\stage3.txt-ItemTypefile
Restart-Computer-wait
New-Itemc:\temp\stage4.txt-ItemTypefile
}
New-ComputerSetup