I came across this and this question today. and I found that here the requirement belong to PowerShell and Excel/CSV. There is nothing related to SharePoint here.
So, I am wondering that the question with only tag Powershell
are part of SP.SE? Or we should flag them off the topic?