External commands using scripts with stdin and stdout