title: Appending columns at begining of csv file
body: <p>Using this code, I am writing first couple of columns to a csv</p>
  <pre><code>$Hash = [ordered]@{}
  
  foreach ($Property in $Properties) {
      $Hash[$Property] = (($New_Extracted_Data.$Property | Measure -Sum).Sum)/$NumberOfRowsToPick
  }
  
  [pscustomobject]$Hash | Export-Csv &quot;C:\script\sum_$Server$Services.csv&quot; -NoType -Force
  </code></pre>
  <p>which returns this result:</p>
  <pre><code>rx_AVERAGE  rx_MAX  rx_MIN  tx_AVERAGE  tx_MAX  tx_MIN  
  20538.44384 73426.92533 1886.881034 6355.250931 20152.27358 1817.357994
  </code></pre>
  <p>After that I am appending 3 columns using this code:</p>
  <pre><code>$csv = Import-Csv -Path &quot;c:\script\sum_$Server$Services.csv&quot;                 
  
  foreach($row in $csv)
  {                    
      $row | Add-Member -MemberType NoteProperty -Name &quot;ServerName&quot; -Value $Server -Force
      $row | Add-Member -MemberType NoteProperty -Name &quot;Start Time&quot; -Value $FirstTimeStamp -Force 
      $row | Add-Member -MemberType NoteProperty -Name &quot;End Time&quot; -Value $LastTimeStamp -Force
  }
  
  $csv | Export-Csv -Path &quot;c:\script\sum_$Server$Services.csv&quot; -NoType
  </code></pre>
  <p>which is producing a final result:</p>
  <pre><code>rx_AVERAGE  rx_MAX  rx_MIN  tx_AVERAGE  tx_MAX  tx_MIN  ServerName  Start Time  End Time
  20538.44384 73426.92533 1886.881034 6355.250931 20152.27358 1817.357994 devas1.devad.myworldpanel.com   1597044600  1599633000
  
  </code></pre>
  <p>Newly added columns are getting added at the end.</p>
  <p>I need to add the newly added columns at the beginning, like so:</p>
  <pre><code>ServerName  Start Time  End Time rx_AVERAGE rx_MAX  rx_MIN  tx_AVERAGE  tx_MAX  tx_MIN
  devas1.devad.myworldpanel.com   1597044600  1599633000 20538.44384  73426.92533 1886.881034 6355.250931 20152.27358 1817.357994
  
  ServerName  Start Time  End Time rx_AVERAGE rx_MAX  rx_MIN  tx_AVERAGE  tx_MAX  tx_MIN
  devas1.devad.myworldpanel.com   1597044600  1599633000 20538.44384  73426.92533 1886.881034 6355.250931 20152.27358 1817.357994 
  </code></pre>
  <p>Please let me know how can I add them at the beginning instead of end?</p>