QS-2891 Make command sequence writing last command output to sequence output pipe