If the idea is to filter the users with "empty" attribute values, it's much easier to use the Exchange cmdlets. For example:
Get-MailUser -Filter {CustomAttribute1 -eq $null -and RecipientTypeDetails -eq "GuestMailUser"}
You can then pass the output to the Set-MailUser cmdlet to populate the attribute values as needed.