USB reboot

Hello everyone Im new and want to ask a simple question about RB3011 (Im using rb3011 with LTE module SIM7600E-H) it is working perfectly on OS 7.9.1, however like all GSM operators after downloading a certain amount of GB speed decrease a lot. Is there a way to stop the power to the USB port (reboot) after reaching let’s say 50 GB of traffic, this is the most efficient way that I discovered the module itself needs to be powered off.
Thank everyone.

system/routerboard/usb/power-reset duration=5

will reset USB power for 5 seconds.
you can use this in scripts to do power reset at 50GB mark.

Sound very interested, where I can find information about this type of script?
add action=passthrough chain=forward comment=“Download Global Counter” in-interface=WAN
this is my counter can I have some help furder

Final code:

:local intf “WAN”;
:local rx [/interface get $intf rx-byte]
:if ([/interface get “WAN” rx-byte] > 10995116278) do={/system routerboard usb power-reset duration=10s}