This process is called a clean install, which is ironic as there's nothing particularly clean about it: Microsoft has enshittified Windows Setup.
Learn how to use Bash aliases to shorten commands, reduce errors, speed up tasks, and improve your productivity in the Terminal.