title: How to run PSPP syntax file from the command line (CMD)?
body: <p>I have the following syntax written in PSPP .sps file:</p>
  
  <pre><code>GET FILE =  '... result.sav'
  save translate
          /outfile = '... data.csv'
          /type = CSV
          /REPLACE
          /FIELDNAMES
          /CELLS=LABELS.
  </code></pre>
  
  <p>where <code>...</code> stand for the path of the files.</p>
  
  <p>The Script works as expected, so when I open PSPP and run it, it opens the first file and saves it as another CSV file. However, I would like to do two more things:</p>
  
  <ol>
  <li>Call this file from CMD (in Windows) so it will execute all command automatically and silently, without showing the PSPP windows.</li>
  <li>Add a line to the syntax to terminate PSPP after execution.</li>
  </ol>
  
  <p>Right now I can only type the name of the .sps file in the CMD and it opens it but does nothing else. I have looked in <a href="https://www.gnu.org/software/pspp/manual/pspp.html" rel="nofollow noreferrer">the official docs</a> but couldn't find any solution for that.</p>