Command to upgrade the filter for public folders has a minor mistake.
The original command is written: Set-AddressList "PublicFolders" –RecipientFilter { RecipientType –eq 'PublicFolder' }.
However, the name of the address list should be "Public Folders" and not "PublicFolders" (a missing space)