title: How to check Network port access and display useful message?
body: <p>I was trying to check whether the port is opened or not using powershell like follows.</p>
  
  <pre><code>(new-object Net.Sockets.TcpClient).Connect("10.45.23.109", 443)
  </code></pre>
  
  <p>This method works , but the output is not user-friendly. It means if there are no errors then it has access. Is there any way to check for success and display some message like " Port 443 is operational"?</p>