PowerShell Port Scanner Script
Make sure to run as administrator and unrestrict the execution policy before you test the script by:
PS c:\Set-ExecutionPolicy -ExecutionPolicy Unrestricted
And you can return back to the restricted policy afterwards by:
PS c:\Set-ExecutionPolicy -ExecutionPolicy Restricted