title: Powershell Convert a string to datatable
body: <p>I have the below string which is returned from an <code>Invoke-RestMethod</code> call. How can I transform the results into an object or data table to be able to use it? The first row would be the properties. </p>
  
  <p>I tried the <code>Out-File</code> and <code>Export-CSV</code> first but the only length is added to the file. 
  Then I tried the format table which did nothing.</p>
  
  <p>Any ideas?</p>
  
  <pre><code>Name,Main No, Sec No
  
  Alex,34.6743,22.7800
  
  Tom,33.8798,21.9098 
  
  Tim,34.6743,41.7800
  
  Mark,33.8798,21.9098 
  </code></pre>