You can also use a PowerShell command to shut down the computer on all Windows 11, 10, ... Desktop and Server OS!
Everyone probably knows shutdown in the cmd for shutting down, logging out, ... on the computer via Powershell you can also switch off the computer with the command "Stop Computer". The Stop-Computer cmdlet shuts down the local and remote computers. You can use the Stop-Computer parameters to specify authentication levels and alternate credentials, and to force an immediate shutdown.
To use this parameter, the local computers and remote computers must be configured for remoting, and you must have Windows PowerShell on Windows 11, 10, 8.1, MS Server 2019, 2016, 2012 and higher versions of Windows with the option " As administrator execute "open. Stop-Computer is very similar to the old shutdown command that has been built into generations of Windows operating systems. The advantage of Stop-Computer is that it is easier to remember!