It iterates through every line through the output of the next command: netstat -aon @RodionSychev The powershell command is anticipating you to replace "portNumber" with the port range you are searching for. The error states that "portNumber" isn't really a range. In this instance the executable name is in [] https://listingbookmarks.com/story20432263/get-marijuana-in-bath-can-be-fun-for-anyone