Before you select the factory reset option for an old phone, make sure you've gone through these steps before its too late.
Open PowerShell or Windows Terminal as an administrator. If you prefer Scoop as your package manager, that works too. Just ...