The following PowerShell cmdlets can be used for this purpose:
$mbx = Attach-RMEExchangeDB "<Path of edb file>" | Get-RMEMailbox "<mailboxname>"
Restore-RMEMailbox $mbx -FolderNameExclude "<Name of folder to be excluded>" -TargetPath "<Folder path where PST file will be saved>"
e.g.
$mbx = Attach-RMEExchangeDB "C:\RME\Test,edb" | Get-RMEMailbox "John Smith"
Restore-RMEMailbox $mbx -FolderNameExclude "Folder with corrupt emails" -TargetPath "C:\RME\PST"
Please note that the - FolderNameExclude switch can also work with wildcards