feat(run_cmd): add wr method for IO redirect
test(run_cmd): test stdout redirect