![How to wait until all commands are executed and only then have a prompt to restart your PC in powershell script? - Stack Overflow How to wait until all commands are executed and only then have a prompt to restart your PC in powershell script? - Stack Overflow](https://i.stack.imgur.com/BvNhd.png)
How to wait until all commands are executed and only then have a prompt to restart your PC in powershell script? - Stack Overflow
Stop-Computer, Restart-Computer on macOS: support graceful shutdown by default, implement `-Force` support · Issue #19791 · PowerShell/PowerShell · GitHub
![Restart-Computer -cn -Force -Wait -Timeout is broken in latest build. · Issue #11002 · PowerShell/PowerShell · GitHub Restart-Computer -cn -Force -Wait -Timeout is broken in latest build. · Issue #11002 · PowerShell/PowerShell · GitHub](https://user-images.githubusercontent.com/18229166/176890067-8c3f76d3-c104-44de-9bcb-34d7f0299c7a.png)