If you want the switch to only change the state of the Main / Default 2.4GHz WiFi SSID then set the 5GHz Main SSID (and both Guest SSIDs) to your desired state (off) via the normal menu system and use the ultra-simple script HERE, which was the original version for my 2.4GHz-only Shadow.
Or,,, edit the script you've installed as you suggested!