title: Powershell: Custom object to CSV
body: <p>I created custom object that basically stores Date and few integers in it's keys:</p>
  
  <pre><code>$data = [Ordered]@{
      "Date" = $currentdate.ToString('dd-MM-yyyy');
      "Testers" = $totalTesterCount;
      "StNoFeedback" = $tester_status.NoFeedback;
      "StNotSolved" = $tester_status.NotSolved;
      "StSolved" = $tester_status.Solved;
      "StNoIssues" = $tester_status.NoIssues;
      "OSNoFeedback" = $tester_os.NoFeedback;
      "OSW7" = $tester_os.W7;
      "OSW10" = $tester_os.W10;
      "OfficeNoFeedback" =  $tester_Office.NoFeedback;
      "OfficeO10" = $tester_Office.O10;
      "OfficeO13" = $tester_Office.O13;
      "OfficeO16" = $tester_Office.O16;
  }
  </code></pre>
  
  <p>I need to Output it to CSV file in a way that every value is written in new column. 
  I tried using <code>$data | export-csv dump.csv</code>
  but my CSV looks like that:</p>
  
  <pre><code>#TYPE System.Collections.Specialized.OrderedDictionary
  "Count","IsReadOnly","Keys","Values","IsFixedSize","SyncRoot","IsSynchronized"
  "13","False","System.Collections.Specialized.OrderedDictionary+OrderedDictionaryKeyValueCollection","System.Collections.Specialized.OrderedDictionary+OrderedDictionaryKeyValueCollection","False","System.Object","False"
  </code></pre>
  
  <p>Not even close to what I want to achieve. How to get something closer to: </p>
  
  <pre><code>date,testers,stnofeedback....
  04-03-2016,2031,1021....
  </code></pre>
  
  <p>I created the object because it was supposed to be easy to export it as csv. Maybe there is entirely different, better approach? Or is my object lacking something?</p>