PowerShell PowerShell $apache = Get-Service | where name -match "apache" if($apache.status -eq "Stopped") { Start-Service $apache.Name } 12345 $apache = Get-Service | where name -match "apache"if($apache.status -eq "Stopped"){ Start-Service $apache.Name}