Help with this script!

im searching the right syntax to pass value of

/tool bandwidth-test 577.534.666.1 direction=receive protocol=tcp duration=2s do={
:local averspeed $“rx-total-average”
/queue simple set [find comment=wifi] max-limit=$averspeed/2000000}

thx

please someone

ok fine forget it. i made it myself. it work like a champ !