Here is that same script in GitHub:
https://github.com/pfaffman/import-user-fields-from-csv
Please note that at the moment it only does user custom fields - not fields such as name.
That was probably because you weren’t hitting save at then end of each edit. Is a UI thing that it would be nice to see addressed one day!!