execute each command in child process