First, when you enable for the first time, it will always auto connect later.

If you want a script that it can auto connect without even click for the first time, the hotplug script could be iface scripts.

For example, you need to know the iface name, e.g. eth2 or usb0 then you can write script to set up all the UCI config and connect in /etc/hotplug.d/. You can find some samples from openwrt.

We don’t want to do this in the default firmware because this is actually a very complicated process to automate everything.