run script from terminal

I need a way to run a command from the terminal without having to do the print command first. Is there a way to run them by name instead of by number? Such as system script run name=“script” instead of system script run 0. I need this as I am making a perl script that will run these scripts remotely and the scripts will not be the same number on all the different mikrotiks.

Thanks

I figured it out.

system script run [system script find name=“name of script”]

Thanks

In latest RouterOS (I am running 6.33.5) you can simply do this:

/system script run myScriptName