Send password reset emails in bulk?

How do we run this command on a per-user basis or just for a list of users in a text file? I have about 8000 users to bring over. I’m creating the users just fine with the API, but then the emails won’t go out due to the hard-coded rate-limiting. I also set my IP address to ACCEPT in the Screened IP, but still no-go. Is this something that only can be done in the rails console?

Thank you!