executeOrRun: allow file objects as stdIn

refs #6320