I'm not exactly sure what you mean by "change the prompt." If you simply need to send command line arguments to the programs you're executing, you can do that both with
system (but note the differences between specifying the command as a string vs. as a list) or with backticks. If you need to
interact with the program and respond to its prompts for information, it's probably a job for
Expect.