title: How to call gnuplot from CLI and save the output graph to the image file?
body: <p>I'm writing a batch file which will also generate a gnuplot graph from a dat file.</p>
  
  <p>I wish to call gnuplot from the command line, using the gnuplot "gnu" script I have written, and save the output graph to an image.</p>
  
  <p>Something like:</p>
  
  <pre><code>gnuplot.exe script.gnu &gt; image.png
  </code></pre>
  
  <p>Any ideas?</p>