The system theme in Windows 11 has one more option: Color Prevalence (also called Accent Color):
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\ColorPrevalence (REG_DWORD)
1 = on, 0 = off.
This parameter operates only in Dark mode and applies a color to the taskbar and to the Start menu.
Note, it must be disabled in Light mode, otherwise the Start menu will stay dark.
It would be useful to add an option to the script to change this mode simultaneously with the system theme (or even separately, on at dusk and dawn, off at night).