Obtaining info from other router by script

I have a script and that needs information from a directly attache other Mikrotik router and I had a look at RoMon but I found not much info about how it works.

Script example running on router 2 and wanting to obtaining info from router 1:

:foreach i in=[/ip ipsec policy find tunnel=yes] do={:set $localNew ($localNew+1)};

I taught romon would work like this

:tool romon foreach i in=[/ip ipsec policy find tunnel=yes] do={:set $localNew ($localNew+1)}; 00:00:00:00:01

Can someone point me in the right direction of if an other method is to be used please let it know?