I want to turn off/on port rules frequently and the interface is a bit of a pain for doing it manually. Anyway to script these changes at all ?
Not as such, but I think you can save the config so just create a number of different configs to reload.
If you have UPnP enabled on your hub then you can script rules using that as it's the same universal standard across all routers. There should be plenty of command line tools or C#/Java classes to enable scripting.
e.g. here's a java one: https://upnp-portmapper.sourceforge.io/