I'm trying to add the properties of the object $mailBox_MBS to the object $mailBox_RP.
I used the following code to define the objects:
$mailBox_MBS = (Get-MailboxStatistics -Identity $identity) | select *
$mailBox_RP = (Get-Recipient -Identity $identity) | select *
Then I used the following ForEach loop to add the properties from mailBox_MBS to mailBox_RP:
Foreach($property in $mailbox_MBS)
{
$mailBox_RP | Add-Member -MemberType NoteProperty -Name $property.Name -Value $property.Value
}