Power Shell: Stop Process

Stop-Process -Name “notepad”

Stop-Process -Id 3952 -Confirm –PassThru

calc $p = Get-Process -Name “calc”

Stop-Process -InputObject $p

Get-Process | Where-Object {$_.HasExited}

Get-Process -Name “lsass” | Stop-Process