What I am trying to do is having my program pick the name of another program in the estack, then call it with the remaining arguments. For instance, typing
MyProg("otherprog", "test", 42)
should be equivalent to typing otherprog("test", 42) from the point of view of otherprog (that is, it should detect 2 arguments, the first one being "test" and the second one 42).
The loading and execution of otherprog is not a problem. My problem is I can't see how I can modify the estack before executing otherprog to achieve this result.