title: powershell/powershell when ran via jmeter/BSF sampler/beanshell hangs
body: <p>I am hoping someone has ran into this problem and may give me some tips on what to try next.</p>
  
  <p>I am trying to run some powercli scripts (ran in powershell) in jmeter.
  I am using the BSF sampler in jmeter using beanshell</p>
  
  <p>I am using this script:</p>
  
  <pre><code>exec("powershell.exe -PSConsoleFile "C:\Program Files\VMware\InfrastructurVSphere PowerCLI\vim.psc1"
   - command .\CoreApplAdmin.ps1");
  </code></pre>
  
  <p>The test runs (I see the output of the test in the screen) but the test does not return after running.  Basically, it's hung. I had to kill jmeter.  I dont see anything in the jmeter logs.</p>
  
  <p>Any ideas?  Thanks much for any info/suggestions.</p>