Hi,
The -Wait parameter suppresses the PowerShell prompt and it's only for remote computers. You can try start-sleep
workflow test {
Add-Content -Path "c:\bbc\bbc.txt" -Value "Task 01"
Restart-Computer -force
Start-Sleep -Seconds 60
Add-Content -Path "c:\bbc\bbc.txt" -Value "Task 02"
Restart-Computer -force
Start-Sleep -Seconds 60
Add-Content -Path "c:\bbc\bbc.txt" -Value "Task 03"
Restart-Computer -force
Start-Sleep -Seconds 60
Add-Content -Path "c:\bbc\bbc.txt" -Value "Task 04"
}
test
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.