in reply to write to cmd and save output

If IPC::Open3 doesn't work, try IPC::Run3