executeOrRun: allow file objects as stdIn