title: How to send STDIN(multiple arguments) to external process and work within interactive mode
body: <p>External program has interactive mode asking for some details. Each passed argument must be accepted by return key. So far I managed to pass an argument to external process however the problem I'm facing more then one argument is passed, perl executes then all when you close pipe.
  It's impractical in interactive modes when arguments are passed one by one. </p>
  
  <pre><code>#!/usr/bin/perl
  
  use strict;
  use warnings;
  
  use IPC::Open2;
  
  open(HANDLE, "|cmd|");
  print HANDLE "time /T\n";
  print HANDLE "date /T\n";
  print HANDLE "dir\n";
  close HANDLE;
  </code></pre>