title: Need windows script to run simple for loop across all the parameters listed in a text file
body: <p>I need to run windows "net view" command against each of these values in test.txt file.</p>
  
  <p>test.txt contains a list of servers as below: </p>
  
  <pre><code>\\LB042073 
  \\LB042425 
  \\LB042507 
  \\LB045196 
  </code></pre>
  
  <p>I need to run "net view" command against each of these servers.</p>
  
  <p>Below command does not work:</p>
  
  <pre><code>Get-Content test.txt | %{&amp; net view}
  </code></pre>
  
  <p>Thanks in advance.</p>