help with a signal-strength script

Hello ,
I’m trying to make a script that will notified me when the connection to a device is under -60dBm
it’s will show all the leds, blink for 3 sec and will beep 1Khz for 2 sec.
When I put it in a script it doesn’t work , and when I work it from the terminal its stuck
can someone tell me why doesn’t it work?

thx ,

the script:

/interface wireless monitor wlan1 do={:if ($“signal-strength” <=-60) do={:blink duration=5; :led led1=no led2=no led3=no } else={:b
link duration=2; :led led1=yes led2=yes led3=yes led4=yes; :beep frequency=1000 length=2s}