use download ZIP
button or pastebin link to get the script, as saving the Raw file breaks line endings
Dialogs to pick version, then to pick Default (vanilla MCT) and Auto-Upgrade or Create-Media (enhanced)
Enhanced script name args parsing - just rename the script with:
auto MediaCreationTool.bat
to auto upgrade 21H1 - unattended, usually straight to desktop
auto update 1909 MediaCreationTool.bat
to auto upgrade 1909 with Dynamic Update (latest LCU)
pro auto 20H2 MediaCreationTool.bat
to auto upgrade 20H2 and force Professional edition