This is an old revision of the document!
According to me, the first thing we need to deal with is CSV file.
Import-Csv -Path input.csv | foreach { $currentLine = $_ }