Close all opened Windows by ONE CMD Command
Solution 1:
Solved by PetSerAl.
powershell -command "(New-Object -comObject Shell.Application).Windows() | foreach-object {$_.quit()}; Get-Process | Where-Object {$_.MainWindowTitle -ne \"\"} | stop-process"
Note that Stop-Process
will actually end the entire process.