I got this .csv file, and I'm trying to make a PowerShell script that changes some things in it.

This is how the files look from the start:

This is how it looks after I run the script I made (see below):

This is how I want it to look:

The script I made is below, what should I change to make it work?