Implement subprocess_exec