I'm connecting to a commercial VPN provider. They provide OpenWrt instructions, but only for LuCI. I don't use LuCI, so I'm trying to figure out how to do it directly in UCI. Does that affect your answer at all?
You could just directly edit the network and firewall config files and not worry about the uci syntax that those scripts are using. The fact is that it may be easier and/ or faster.