Shell.run
From ComputerCraft Wiki
Here is a example how to run programs with custom input.
stringArgs=read() -- You input a line of string, and each space makes a argument, such as "arg1 arg2". Argument 1 is "arg1". shell.run("myprogram", stringArgs) -- runs the program. myprogram would have to be located on the main directory of the computer for this to work.