How can I factory reset an iPhone, using my computer, without iTunes?

How can I factory reset an iPhone, using my computer, without iTunes?

Added (1). iPhone 4

Settings>General>Reset>Erase all Content and Settings

Why would you do it without iTunes? It's available on macOS and Windows

Yes

You can't.

You could do it on the phone, without a computer of course
but if you want it through a computer iTunes is required.