Script to write users to a CSV file.