A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Can you share the script? Are you filtering by RecipientTypeDetails or similar? Are you using the -ResultSize parameter?
In Exchange Online, Team/site mailboxes are not returned by default, if you have such around you have to specifically request them.