title: How to add data to last column of CSV using PowerShell?
body: <p>I have a requirement to add data to the last column of a CSV file. The test file I have looks like:</p>
  
  <pre>
  NAME,AGE,OFFICE,DEPT,SKILL
  jack,24,IBM,Retail
  tom,32,MS,BFSI
  SAM,44,MGR,Test
  </pre>
  
  <p>I have managed to parse the CSV but then adding data to the last column "SKILL" is difficult. The requirement is to add the word 'Java' to the last column on each row</p>
  
  <pre>
  NAME,AGE,OFFICE,DEPT,SKILL
  jack,24,IBM,Retail,Java
  tom,32,MS,BFSI,Java
  SAM,44,MGR,Test,Java
  </pre>
  
  <p>Please note that the value added to the last column remains the same across rows.</p>