Two parts...

1) is there a function in PHP similar to Javascript's shell.run(application.exe)?

2) If so, can variables be passed along to the program?

Specifically, I have a program (a glorified DOS batch file) that users currently have to enter perimeters & execute from a DOS command prompt.

I'd like to have a form online that would pass the same variables to the local dos program.bat file and run it. Is this doable?

Thanks,
Mike