Working proof of concept, check it out!

Download both the script and UserExport.csv and place them here:
C:\Temp\UserExport.csv