To mail-enable an existing on-prem security group ( and this will sync to 365/ Exchange Online with AADConnect)
Enable-DistributionGroup -Identity ******@contoso.com
Then to add the members:
Import-csv C:\userlist.csv | % {Add-DistributionGroupMember -Identity ******@contoso.com -Member $_.users -BypassSecurityGroupManagerCheck}
The -BypassSecurityGroupManagerCheck is needed if you don't own the group, so it should typically always be used.
More info: