In the case of developing an op-script, from an existing op-script you can call another op-script as below. Utility.slax is the other op-script enabled in the system. You can pass an argument ($arg) as the command-line argument to run the utility script, if required.
1 | var $call-another-script-rpc := <op-script> { |
2 | <script> "utility"; |
3 | <arg> $arg; |
4 | } |
5 | var $rpc-result = jcs:invoke($call-another-script-rpc); |