title: wscat commands from script, how to pass
body: <p>I can connect to WS with wscat, I can send commands from console, but I have no idea how to pass commands from script.
  I've tried few way, and always WAS is closed before commands are passed.</p>
  
  <p>Generally I wnt something that will:
  1. connect to WS
  2. Send commands one by one, from list
  3. Save input and output to file</p>