How would I run Minecraft 1.16 off a flashdrive? [duplicate]

I have been enjoying Minecraft lately, after getting java edition.
The problem? Every month, I have to reset my whole PC to keep it from lagging to a bog.
However, when I do this, I have to reinstall Minecraft.
It has gotten HIGHLY annoying, so I wanted to move Minecraft to my flash drive.
Nothing worked! It ALWAYS used my local AppData anyway, meaning that when the wipe occurs I have to wait an hour for a reinstall... D:
Is there any launcher, or method to run Minecraft 1.16 off of a flash drive?
Specifications: Flashdrive has 60 GB of storage, 20 GB left after all of apps and other stuff take space.


I do have to agree with esqew that "Having to reset your PC every month seems to be indicative of a larger problem..." and HolyBlackCat that "Don't waste time on figuring out how to run MC from usb stick. Figure out what's slowing down your PC."

However, there are third-party Minecraft launchers that are portable (run entirely from a self-contained folder). In particular, my favorite is MultiMC, which in addition to the features described on the page, loads entirely from the folder you unzip (Windows) or untar (Mac/Linux) it into—which can be on an external mount like a USB drive or network share.