lang/ps/ ProcessManagement


See this Microsoft article

Get-Process
Get-Process -name vlc
Get-Process -name vlc | ForEach { taskkill /f /pid $_.Id }
Get-Process -Id 99
Get-Process -Name ex*
Get-Process -Name ex*,vl*
Get-Process -ComputerName othermachinename
Stop-Process -Name Flibble
Stop-Process -Name t*,e* -Confirm
Get-Process | Where-Object -FilterScript { $_.Responding -eq $false } | Stop-Process
Get-Process -Name BadApp | Where-Object -FilterScript { $_.SessionId -neq 0 } | Stop-Process
Get-Process
Stop-Process
Start-Process
Wait-Process
Debug-Process
Invoke-Command

Services

Get-Service -Name sshd | ForEach { $_.StartType }
Get-Service -Name sshd | Format-List -Property StartType
Set-Service -Name sshd -StartupType Automatic
Get-Service sshd | Select-Object *

note the discrepancy between StartType for the property name, and -StartupType for the argument to Set-Service.