PS C:\> get-service | where-object { $_.displayName -match '^SQL Server' -and $_.status -eq 'running' } | stop-service
Index