This PowerShell script gets the storage used by Office 365 Groups using Get-UnifiedGroup & exports the Office 365 Groups storage report to a CSV file.
— Read on o365reports.com/2022/05/18/get-the-storage-used-by-office-365-groups-using-powershell/