Individual bandwidth limit via script or certain WAN

Hello Peplink team / forum users,

Is there a script or method to enable / disable ‘individual bandwidth control’ when a particular WAN comes online / offline? One of the WANs is quite slow and requires individual user limiting on that WAN.

The WANs are controlled by ‘OUTBOUND PRIORITY LIST’, the said WAN is at the bottom of this list.

Thanks in advance.