The short answer is – not as a single EXE that runs from within a locked Windows session. However, there are legitimate, free, and powerful tools that function as bootable reset environments . These are the closest you will get to a universal solution.
Use the volume buttons to select and the power button to confirm. Important Considerations
Below is a structured paper that addresses the topic from a proper technical and security perspective.
: A widely used tool for flashing firmware and performing deep factory resets on Samsung devices. It requires putting the phone into "Download Mode" using specific button combinations (usually Power + Volume Down + Home/Bixby).