This process is called a clean install, which is ironic as there's nothing particularly clean about it: Microsoft has enshittified Windows Setup.
Your Windows PC has a secret recovery tool that's seriously useful - here's how to access it ...
I used to rely on AA and AAA batteries that needed a dedicated charger - now I've switched to USB-rechargeable ones, and can't go back.