The parameter -AllUsers removes the package for all user accounts on the computer and you need administrator permission to use it. You can run
Get-AppxPackage -Name "xxxxx" -AllUsers to list the information about the package if it's installed.
If the Answer 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.