Hi Roberto,
I'm Sumit, here to answer your query at the Microsoft Community.
Via https://github.com/microsoft/winget-cli/issues/...
In the Windows search,
type powershell, right-click it, and choose run as administrator.
Execute this command and the issue should be resolved.
Get-AppxPackage -Name 'Microsoft.DesktopAppInstaller' | Reset-AppxPackage
Hope that helps, and rely on us for any further inquiries. All the best.