Open PowerShell or Windows Terminal as an administrator. If you prefer Scoop as your package manager, that works too. Just ...
Reinstalling Windows is disruptive. Run these built-in Command Prompt repairs in the right order to fix disk, system files, ...