title: Powershell convert list formatted record into table format
body: <p>I'm looking for some powershell to convert Listed properties into a CSV or Table, not all records in the list have the same Properties but the "Index" property signifies a new record. </p>
  
  <h1>INPUT</h1>
  
  <pre><code>Index:1  
  FirstName:Bob  
  LastName:Smith  
  DOB:1/1/1970  
  Index:2  
  FirstName:John  
  DOB:1/1/1971  
  Index:3  
  LastName:Jones  
  DOB:1/1/1972
  </code></pre>
  
  <h1>OUTPUT</h1>
  
  <pre><code>FirstName,LastName,DOB  
  Bob,Smith,1/1/1970  
  John,,1/1/1971  
  ,Jones,1/1/1972  
  </code></pre>
  
  <p>Any help is greatly appreciated.
  Thanks</p>