OnTested on Windows 10 1709 -22H2 and 11 21H2-22H2 :
Get-AppxPackage -all *NAME_OF_THE_APPX* | Remove-AppxPackage -AllUsers
-all: This parameter is used to retrieve information about all Appx packages installed on the computer.
-AllUsers: This parameter is used to remove the Appx package for all users on the computer.