Get-Process notepad | Stop-Process -Force
# Kill process
$p = Get-Process notepad
$p | gm -foce
# Explore the methods and properties for an object
$p.CloseMainWindows
# Call specific function
Grep
Select-String -Path "audit.log" -Pattern "logon failed" -Context 2, 3
# display lines before /after match