Just a snippet I came up with just now to show all (sharing) permissions for a given mailbox.
Get-MailboxfolderStatistics -Identity $upn | % {
try{
Get-MailboxFolderPermission -Identity $_.Identity.Replace("\",":\") -ErrorAction SilentlyContinue
}catch{$Null}
}