title: Show computername, powershell version and remoting protocol
body: <p>I am trying to write a short script to show all computers powershell version and remoteing protocol. I am trying to get the output to look like</p>
  
  <pre><code>PC: PC1 ---------- PS:4.0------------Remoting Protocol: 2.2
  PC: PC2 ---------- PS:3.0------------Remoting Protocol: 2.2
  </code></pre>
  
  <p>The PC names are stored in a file. So far I have tried the code below but couldn't figure out how to show the remoteing protocol or the PC name in a linear fashion</p>
  
  <pre><code> cls
   $1 = (gc .\computers)
   invoke-command -computername $1 {$psversiontable.PSVersion.major}
   # this only gives me the PS version
  </code></pre>
  
  <p>Any suggestions / help please?</p>