if you want to run just single command you can do that through SSH. just add certificates, so you are not required to enter password, and add command after the ssh command
i am running this from linux:
$ssh admin@10.5.51.1 -i key "/ip address print"
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 10.5.51.1/24 10.5.51.0 10.5.51.255 ether1
that way you can call all CLI commands that way. In case of SSH by default you will get output to stdout.
Is it possible to run that SSH command from a windows executable?, ie a .exe or a .bat?
Reason I ask is because I have a windows based monitoring program that monitors latency and can launch an executable if the latency exceeds a certain level. So if the latency goes over say 100ms then I want to launch an executable that will log into the mikrotik and increase the cost of that OSPF interface.
I would obviosuly need to create a unqiue executable for each highsite but thats fine