title: Test-path on list of computers
body: <p>I need to check if a folder exists on multiple computers using powershell. </p>
  
  <p>I've started my script but have gotten myself muddled. How do I get the computer name from my serverlist.txt into the test path cmdlet?</p>
  
  <pre><code>$a = Get-Content 'c:\Users\jason\Documents\Scripts\Serverlist.txt' foreach  ($i in $a)  {Test-Path "\\$a\c$\program files\folder"}
  </code></pre>