Describe "Apache" { It "Apache CLI" { "httpd -v" | Should -ReturnZeroExitCode } It "Apache Service" { brew services list | Out-String | Should -Match "httpd\s+stopped" } } Describe "Nginx" { It "Nginx CLI" { "nginx -v" | Should -ReturnZeroExitCode } It "Nginx Service" { brew services list | Out-String | Should -Match "nginx\s+stopped" } }