Auto Login Email with CSV

Hi i want to ask
I run UI Vision with the command line, and I run 50 Chrome profiles, I want to make a script to auto login to Gmail for each Chrome profile, and each Gmail for each Chrome profile is definitely different, and I have prepared 1 CSV file containing 50 lines email.

the problem is, how do i set profile 1 to input the first line in the CSV then profile 2 input the 2nd line in the CSV and so on

Hi, my understanding is that you can specify the chrome profile from the command line when you start Chrome.