The below command runs successfully but the only problem is that when trying to upload to Intune I get an error that the format is incorrect. I then have to manually update the CSV to separate each comma and upload. We have hundreds of devices and, needless to say, it's incredibly tedious to do this for every single one. I can't find a forum that describes a way to edit the script to do this for me. Does anyone have an idea of how to do this, if even possible?
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted