title: Cmd or Batch - Setting Variable then echoing fails
body: <p>I found a GUI app on Github that I'm using to store command lines to run. The author is using the following syntax to take what I enter and use it in a cmd window -</p>
  <p>I enter into his form -</p>
  <pre><code>set &quot;test=four&quot;
  
  echo %test%
  
  pause
  </code></pre>
  <p>He converts it to this and it fails to show the contents of the variable -</p>
  <pre><code>&quot;C:\Windows\System32\cmd.exe&quot; /Kset &quot;test=four&quot;&amp;&amp;echo %test%&amp;&amp;pause
  </code></pre>
  <p>The result is %test%, not the contents of the test variable, which is four.</p>
  <p>If I run his command line in a cmd window myself, it also fails to get the var contents and shows %test%.</p>
  <p>So why is this not working and I suggested to him to just copy what I entered into his form and do a paste into the cmd window he generates and run it. Can that be coded easily and is that the easiest fix?</p>