# Show all services
get-service
# Show service with the name "ssh-agent"
get-service "ssh-agent"
# Show services with "ssh" in the name (can use regex)
get-service | where name -match "ssh"
# The following will have the same result
get-service | where-object { $_.name -match "ssh" }
# Show services with "running" in the status
get-service | where status -eq "running"
start-service "ssh-agent"