It iterates via each individual line in the output of the next command: netstat -aon @RodionSychev The powershell command is expecting you to replace "portNumber" With all the port number you are searhing for. The mistake states that "portNumber" isn't really a quantity. Does the Armor of Agathys spell grant https://helpmehigh.com/