It iterates by means of each individual line from your output of the next command: netstat -aon It appears to me, this is a cross-area situation given that you are not allowed to create a ask for to a unique area. You will need to find solutions to this problem: https://helpmehigh.com/