need help with my script

Hi,
in telnet i write :
:global a
/interface wireless registration-table print
:set a [/interface wireless registration-table get 0 signal-to-noise]
:put $a

i receive any number this OK.

When i write to script this is not work.

i test this script and not beep:
:global a
/interface wireless registration-table print
:set a [/interface wireless registration-table get 0 signal-to-noise]
:beep

Thanks for help. Greets Vlada
2.9.35 version

print comand does not work in scripts neither do :put comand. Instead you can use something like that:

:global a
:set a  [/interface wireless registration-table get [/interface wireless registration-table find radio-name=your_radio_name] signal-to-noise] 
:log info $a

Then check log table.