#Gets all groups called GroupName
$Group= Get-AzureADGroup -SearchString "GroupName"
Uses Regex to filter out 365 groups with SPO in proxy name ( can't use -like and Where-Object as ProxyAddresses is an array , and not contain doesn't support wildcards :( )
$Group= $Group | ?{$_.proxyaddresses -match '.*SPO.*'}