title: Powershell - Get Variable from C# Cmdlet
body: <p>I'm writing a C# Cmdlet that needs to get the value of a global script variable.
  How do I do it?</p>
  
  <p>I noticed that the Runspace has SessionStateProxy.GetVariable method.
  Can I access the runspace from a C# Cmdlet?</p>
  
  <p>Thanks!</p>