This might get you some of the way:
Get-MgUser -All | Format-List ID, DisplayName, Mail, UserPrincipalName