title: Pass a variable to another script
body: <p>I have two PowerShell scripts.
  The first script has the following code:</p>
  
  <pre><code>$var = "abc"    
  $DIR = "C:\"
  $SCRIPT_NAME = "abc.ps1"
  &amp;"${DIR}\${SCRIPT_NAME}" #execute the second script
  </code></pre>
  
  <p>If I want to pass the variable <code>$var</code> to the second script, how do I achieve that? What code do I need to put in both the first and the second script?</p>