TCP Port Closed Powershell Check

This SAM template allows you to check for the status of a single or multiple TCP ports and whether a connection response is available. This template is to look for ports that are up and responding and if they are will place the status in a Critical state, as the purpose is to monitor ports that should not be open as that would be a security risk.

Pass the port/s into the argument list as comma separated values. Due to a limitation of passing a multi value array in to the script body, the only parameters that are supported in this script are the port values, which is all that is needed anyway.