try using Test-NetConnection to test for HTTP port instead