Script auto update for the Alert...

Dear Buddy…
i have come out the script that…

system scheduler add name=Gateway-watch-dog start-time=startup interval=5m on-even=“:if ([/ping $[/ip route get [find distance=“1”] gateway] count=10)=0) do={system reboot}”
–This script will auto monitor the gateway every 5 minutes, when it not able to ping the gateway for 10 times, then it will reboot the router.


system scheduler add name=Rebooted-notification start-time=startup on-event=“:delay 300s\r\n/tool e-mail send server=202.133.97.7 to=wirelessteam@mykris.net from=iGate@mykris.net subject="$[/system identity get name] $[/system clock get time] $[/system clock get date]" body="$[/ip address get [find interface=“any-wds-bridge1”] address], The Radio just rebooted 5 minutes ago, please take note "”}
–When the routerboard is reboot, then it will send the email to the Administrator after 5 minutes the router rebooted.

But, i facing some issue here, when i add this 2 script in the terminal, it will convert my command to the system information such thing, later on, when i change the value like the system name, ip address and the gateway, it will not update the scheduler.

where should i change in my script to make it auto update in the scheduler?

i have try…
if i add this into the scheduler via winbox…
/tool e-mail send server=202.133.97.7 to=bt.ang@mykris.net from=iGate@mykris.net subject=“$[/system identity get name] $[/system clock get time] $[/system clock get date]” body="$[/ip address get [find interface=“nv2-wds-bridge1”] address], The Radio just rebooted 5 minutes ago, please take note "

no matter what i change on the system, it will provide me the updated information.