Copy stdout and stderr from command run