Based on my testing, there doesn't exist issue with it. If you still get confirmation, try to add "-Confirm:$false" to this below one(Based on my testing, you don't need to add it).
Add-MailboxPermission -Identity sharedmailbox@Company portal .com -User $user.Users -AccessRights FullAccess -InheritanceType All -AutoMapping $True
If you get an error, please provide a screenshot about it. The screenshot will help us to narrow down that issue.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.