Welcome email not sent when adding user from console

I want to do it from the console with predefined usernames, and force users to only chose a password (I don’t want them to choose the username, the setting username change period is set to 0). I don’t think invites help me in this context …

Is there no way to trigger a “choose a password” email from the console?

I tried to to use Jobs.enqueue(), similarly to how it’s used in User.send_approval_email() here but I failed at generating an email hash