$os = Get-OSVersion Describe "Apache" -Skip:($os.IsLessThanCatalina) { It "Apache CLI" { "httpd -v" | Should -ReturnZeroExitCode } It "Apache Service" { brew services list | Out-String | Should -Match "httpd\s+stopped" } } Describe "Nginx" -Skip:($os.IsLessThanCatalina) { It "Nginx CLI" { "nginx -v" | Should -ReturnZeroExitCode } It "Nginx Service" { brew services list | Out-String | Should -Match "nginx\s+stopped" } }