title: SessionStateProxy Variable with Runspace Pools
body: <p>I wanted to use a Runspace Pool in PowerShell to perform Background actions. But I need to access the WPF Window Variable from the Main Thread.</p>
  
  <p>Normal Runspaces have the option:</p>
  
  <pre><code>$runspace.SessionStateProxy.SetVariable('xamGUI',$xamGUI)
  </code></pre>
  
  <p>But how do I do the same with a RunspacePool?</p>