title: Running powershell from Perl and getting a return value
body: <p>I am running a Perl script that calls a powershell script. Is there a way for me to get a return value from this? I've tried something similar to </p>
  
  <pre><code>my @output = "powershell.exe powershellscript.ps1;
  foreach(@output)
  {
     print $_;
  }
  </code></pre>
  
  <p>and I get nothing out of it. Do I need to add something to the powershell script to push the return values?</p>