windows shut down windows command prompt code example Example: how to power down pc using cmd shutdown /s