for scripting experts please have a look

hello dear people

i am new in Mikrotik scripting and i wouldn’t be asking if i knew how to so,

is it possible to make script do the following:

search for any name in “simple queue” that passes “totalbyte” of 50GB if true then lower speed “target upload/target download” for x time then return original speed back again

reason to do this is to save bandwidth

waiting for you guys …

pleas anyone ?