can't add script source, example from Wiki Improved Netwatch

Hi to all.
I’m trying to use part of code from example “Improved Netwatch” from Wiki in my script.
The script I’m trying to add is: system script add name=“test2” source=“:local i 0; {:do {:set i ($i + 1)} while i<5) && ([/ping 192.168.61.2 interval=3 count=1]=1)}”
Every time I’m trying this to add I’ve got the error: invalid argument name
I’m new to scripting and just learning so I can’t understand what’s wrong with this code. Can somebody help me with this?
Router os 2.9.51

add source=“:local i 0; {:do {:set i ($i + 1)} while i<5) && ([/ping 192.168.61.2 interval=3 count=1]=1)}”

Thank you a lot.