if(netstat-ano|Select-StringLISTENING|Select-string127.0.0.1:8000){write-host-foregroundcolorGreen"server is up"}else{write-host-foregroundcolorRed"server is down";cat build\server.log;exit1}
if(netstat-ano|Select-StringLISTENING|Select-string127.0.0.1:8001){write-host-foregroundcolorGreen"server-ssl-selfsigned up"}else{write-host-foregroundcolorRed"server-ssl-selfsigned is down";cat build\server-ssl-selfsigned.log;exit1}
if(netstat-ano|Select-StringLISTENING|Select-string127.0.0.1:8002){write-host-foregroundcolorGreen"server-ssl-signedbyca up"}else{write-host-foregroundcolorRed"server-ssl-signedbyca is down";cat build\server-ssl-signedbyca.log;exit1}
if(netstat-ano|Select-StringLISTENING|Select-string127.0.0.1:8003){write-host-foregroundcolorGreen"server-ssl-client-authent up"}else{write-host-foregroundcolorRed"server-ssl-client-authent is down";cat build\server-ssl-client-authent.log;exit1}
if(netstat-ano|Select-StringLISTENING|Select-string0.0.0.0:3128){write-host-foregroundcolorGreen"proxy is up"}else{write-host-foregroundcolorRed"proxy is down";cat build\proxy.log;exit1}