title: powershell: script with variable args
body: <p>I want to start a script1.ps1 out of an other script with arguments stored in a variable.</p>
  
  <blockquote>
    <p><code>$para = "-Name name -GUI -desc ""this is the description"" -dryrun"<br>
    . .\script1.ps1 $para</code>  </p>
  </blockquote>
  
  <p>The args I get in script1.ps1 looks like:  </p>
  
  <blockquote>
    <p>args[0]: -Name name -GUI -desc "this is the description" -dryrun</p>
  </blockquote>
  
  <p>so this is not what I wanted to get.
  Has anyone a idea how to solve this problem?<br>
  thx lepi</p>
  
  <p>PS: It is not sure how many arguments the variable will contain and how they are going to be ranked.</p>