title: Output multiple results of a single query to a single text file with the same format
body: <p>I am performing Audits of Servers and sending the results to text files. One of the things I need is a list of the Serial ports currently configured on a server.<br />
  I am using:</p>
  <pre><code>Get-PnpDevice -Class 'Ports' | Select-Object -Property Friendlyname
  </code></pre>
  <p>I get back exactly what I need on the display</p>
  <pre class="lang-none prettyprint-override"><code>FriendlyName                                      
  ------------                                      
  Prolific USB-to-Serial Comm Port (COM9)           
  Prolific USB-to-Serial Comm Port (COM10)          
  Digi One SP - Port 1 (COM4)                       
  Standard RealPort Device TS4 - Port 2 (COM14)     
  Standard RealPort Device TS4 - Port 1 (COM13)     
  Intel(R) Active Management Technology - SOL (COM3)
  Standard RealPort Device TS4 - Port 4 (COM16)     
  USB Serial Port (COM11)                           
  Standard RealPort Device TS4 - Port 3 (COM15)     
  USB Serial Port (COM 6)
  </code></pre>
  <p>When I send to a text file I get nothing.</p>
  <pre><code>$Port = Get-PnpDevice -Class 'Ports' | Select-Object -Property Friendlyname 
  &quot;Serial Ports:       &quot; +  $Port &gt;&gt; C:\Audit\Audit.txt
  </code></pre>
  <p>How do I get the data, in the same format as the display, to a text file?</p>