Is there a way that you can create an object of a program so that you can have your program do things with that program.

What I am doing deals with emulators into mainframes. We use a program that does it, but it crashes all the time, and rather than using another program with another program with the emulator I would like reference the emulator as an object.

Is there a way that you can do this?

Jimmy