How to run a script locally on routeros from dude installation?

I would like to use scripts created directly in dude’s routeros to test some hosts.

I need to create a probe that when assigned as a service to a host(192.168.0.10), execute a command locally on the dude’s routeros installation(127.0.0.1), passing the host’s ip as an argument.
The idea is to run a script, passing it the host ip and get the return of this test and use it as a probe on the host.

Something like a function ros_command(":global HostToTest 192.168.0.10 ; /system script run test) “127.0.0.1”

My problem is that I don’t know how to make ros_command run on localhost(127.0.0.1) instead of running on remote host when it’s called as a function or probe.

Any help will be greatly appreciated.,

Actually is impossible.

It's sad to read this.
My ultimate intention is to be able to monitor packet loss for remote hosts.
For remote hosts running RouterOS I managed to solve the problem with ros_command and scripts installed on the remote host that do a packet loss test from the remote host and return the results, so I can test the communication between the remote host and specific ips and generate graphics.
For remote hosts running linux I was also able to resolve the issue by creating scripts on linux hosts to test packet loss, and installing these scripts on xinetd to listen on a specific port and using dude's tcp probes to fetch the results. I could also use an snmp server on linux to return these values.

But in the case of simple remote hosts like printers, non-RouterOS wifi routers, windows computers and internet hosts, I couldn't find a way to calculate packet losses and generate graphs.
Unfortunately.
If anyone else has any ideas on how to do it I would be very grateful.