This process is called a clean install, which is ironic as there's nothing particularly clean about it: Microsoft has enshittified Windows Setup.
Enable the Linux terminal on any Android device, and you can create or practice your bash scripting on the go.