title: How to export hash table Name and value into Excel columns?
body: <p>I have a hash table which consists of <em>Component name</em> and <em>Codecount</em> like this:</p>
  
  <pre><code>Name            Value
  -----           ------
  Comp1           2000
  Comp2           3000
  </code></pre>
  
  <p>If it is exported into Excel, it will be easy to present. </p>
  
  <p>How do I export this hash table from PowerShell into Excel?</p>