title: joining outputs in powershell
body: <p>I have the below and I want to join all the outputs into a single line - so the output would look something like:</p>
  
  <p>TCPIP.sys version is $one "." $two "." $three "." $four</p>
  
  <p>I try and join them in powershell but I get the below error:</p>
  
  <blockquote>
    <p>PS C:\Windows> $one = (get-childitem c:\windows\system32
    \drivers\tcpip.sys).Versioninfo.ProductMajorPart | fl *</p>
    
    <p>PS C:\Windows> $two = (get-childitem
    c:\windows\system32\drivers\tcpip.sys).Versioninfo.ProductMinorPart |
    fl *</p>
    
    <p>PS C:\Windows> $three = (get-childitem
    c:\windows\system32\drivers\tcpip.sys).Versioninfo.ProductBuildPart |
    fl *</p>
    
    <p>PS C:\Windows> $four = (get-childitem
    c:\windows\system32\drivers\tcpip.sys).Versioninfo.ProductPrivatePart
    | fl *</p>
  </blockquote>
  
  <p>Error:</p>
  
  <blockquote>
    <p>PS C:\Windows> write-host = $one $two
    = Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData Microsoft.PowerShell.Commands.Internal.Format.FormatEntr yData</p>
  </blockquote>