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