Microsoft 365 : PowerShell script to get all the external users from all site collections in a tenant

PowerShell script to list all site collections in Microsoft 365 tenant