Send password reset emails in bulk?

I’d also be interested in adapting the script above for sending to just 1 user, so I can test it out before sending it out to everyone.