title: Get-hotfix on multiple computers and exporting to CSV
body: <p>How do I properly use $_ in out-file? Here's my code:</p>
  
  <pre><code>get-content computers.txt | 
    Where {$_ -AND (Test-Connection $_ -Quiet)} |
      foreach { Get-Hotfix -computername $_ } | 
        Select CSName,Description,HotFixID,InstalledBy,InstalledOn |
          convertto-csv | out-file "C:\$_.csv"
  </code></pre>
  
  <p>I'm trying to execute a get-hotfix for all the computers listed in the text file then I want them to be exported to CSV with the computer name as the filename.</p>