Basically, install Windows as you normally would, but when asked for Time and Currency format, select English (World) instead of your country.
Then let the installer do its thing. Eventually, you will see a window with an ice cream cone on the floor with the words “Something went wrong” and the error message “OOBEREGION.” This cryptic message means that the “out of box experience” (OOBE) didn’t launch because it didn’t know which region to launch.
Click Skip, though, and Windows will install just fine. You won’t be prompted to buy Microsoft 365, you won’t be prompted to pay for a OneDrive subscription, and your Start menu won’t be cluttered with apps.
post a link to your script somewhere
See my other comment, it’s not worth posting a script for that. The garbage removal is also just using winget remove or remove-appxpackage to get rid of OneDrive, the preinstalled Teams, Xbox stuff and so on. You’ll write that yourself in 5 minutes.