Execute commands from one MT to another automatically

Hi,

I have lot of MT’s installed in hotels as access points and, beside of this, there is a another MT as user management in the same hotel.
I have VPN to each user managemet of each hotel. Each hotspot network is a LAN.

What I want is to create a script to update automaticaly my APs. It means to access from the user management to each AP. My problem is I do not know how to access to each AP from the mikrotik using a script. From one mikrotik I can not execute commends in another MT (Actually I do not know how to do it). I can do a mac-telnet without password, but I do not know how to execute mikrotik commands later.

Any suggestion or link?