title: Powershell & Sharepoint export list items via view to csv
body: <p>I am attempting to export items from a sharepoint list via a specific View.  </p>
  
  <p>I have the items returning successfully but now I am stuck trying to export it to a csv file correctly</p>
  
  <p>here is what i have thus far:  </p>
  
  <pre><code>$web = Get-SPWeb $url
      $splist = $web.Lists[$listname]
      $view = $splist.Views["Current Month"] 
      $items = $splist.GetItems($view)
      $items | Select-Object "Check Number", "Purchaser" | Export-Csv -Path f:\test.csv
      $web.Dispose()
  </code></pre>
  
  <p>Thank you in advance!</p>