You can’t do an enablement upgrade from 10 to 11 nor from 1121H2 to 1123H2. The enablement for 10 is in there also if that’s what you meant. The script doesn’t do upgrades from 10 to 11 (yet) but you could grab the Update Assistant code out of it and set the Win11 UA URL and it should work. Or use the ISO script. Upgrade Windows 11 with ISO - Pastebin.com
Keep in mind lots of machines are not Windows 11 compatible due to TPS 2.0 and CPU requirements Microsoft has artificially put in place. There are workaround for this but only via the ISO method and from my testing they will not upgrade builds automatically either as Windows Update will detect they’re not compatible, so you’ll have to do ISO upgrades every year with the new build.
BTW the certification logos are kind of obnoxious, could you consolidate them into one line at least if not remove them?