title: How to run a VBS script from R, while passing arguments from R to VBS
body: <p>Let's say I want to run a VBS script from R, and I want to pass a value from R to that script. </p>
  
  <p>For example, in a simple file called 'Msg_Script.vbs', I have the code:</p>
  
  <pre><code>Dim Msg_Text
  
  Msg_Text = "[Insert Text Here]"
  
  MsgBox("Hello " &amp; Msg_Text)
  </code></pre>
  
  <p>How do I run this script using R, while editing the parameters and/or variables in R? In the above script for instance, how would I edit the value of the <code>Msg_Text</code> variable?</p>