Open PowerShell as an administrator.
Run the following command to check if the Minecraft package is still present on your system:
Get-AppxPackage -Name Microsoft.MinecraftUWP
If the command returns an entry for the Minecraft package, you can try reinstalling it using the following command:
Add-AppxPackage -Register "Path\to\the\package" -DisableDevelopmentMode
Replace "Path\to\the\package" with the actual path to the Minecraft package file. This file is typically located in the "C:\Program Files\WindowsApps" folder.
If the Get-AppxPackage command didn't return any entries for Minecraft, or if the Add-AppxPackage command didn't work, you might need to acquire the Minecraft package file first. You can do this by downloading it from the Microsoft Store website or by obtaining it from another Windows 10 system that has Minecraft installed.