Windows PowerShell is the command-line shell and scripting language for Windows. You can restore Windows from PowerShell by using the Restore-WindowsFeature cmdlet.