title: Batch script with parameters with spaces
body: <p>I am trying to find out how to execute a batch script passing 3 parameters that contain some spaces. 
  This is how the script is being executed from the CMD:</p>
  
  <pre><code>sendmail.bat 'testmail@test.com' 'HCS Receiving Variance Notification' 'PO 2 \nLn 2\nLt G2036930  \nItm 10135910\nRcv 9.000\nOrd 3.000\n'
  </code></pre>
  
  <p>The script set the variables like this:</p>
  
  <pre><code>SET SUBJECT=%~2
  SET MAIL_BODY=%~3
  SET MAIL_LIST=%~1
  </code></pre>
  
  <p>But when I run the script in that way, the send-mailmessage PowerShell command (<code>powershell.exe send-mailmessage -subject '%SUBJECT%' -body '%MAIL_BODY%' -from test@test.com -to %MAIL_LIST%</code>) fails because the variable are wrong defined. The only one variable that is being set properly is the MAIL_LIST, then SUBJECT is being saved as "'HCS" and MAIL_BODY as "Receiving".</p>
  
  <p>The is any option to have this working?</p>
  
  <p>Thanks!</p>