title: Show output in two columns Powershell
body: <p>I have 2 execution commands and we need to have it as a otput file (csv). The results should be shown in two columns next to each other. I am not sure how to use &quot;format-table&quot; or hashtables?
  It gets attributes from Vmware</p>
  <pre><code>get-vm | get-annotation -customattribute &quot;GrupaAktualizacji&quot; | select value
  get-vm | select name, @{N=&quot;DnsName&quot;; E={$_.ExtensionData.Guest.Hostname}}
  </code></pre>
  <p>Below the example output</p>
  <pre><code>Name             DnsName                                  
  ----             -------                                  
  examplename    example.com
  </code></pre>
  <p>and</p>
  <pre><code> PS C:\Windows\system32&gt; get-vm | get-annotation -customattribute &quot;GrupaAktualizacji&quot; | select value
  
  Value
  -----
  GWT  
       
  GW3  
  GW2  
  GW3  
  GW3  
  GW2
  </code></pre>