A script I recently used to add members to an office 365 distribution group using a remote exchange session in a hybrid setup (covered at the end). 

CSV file contains UPNs of all users to be added.

I also found it useful to see who had permissions to send to this group using

To open remote exchange shell:

A prompt will appear for your login credentials then,

Afterwards, remember to remove the session