Add popen wrapper that does not invoke the shell
Use popen wrapper

Closes #30678.