title: Sharing variables\data between Powershell processes
body: <p>I would like to come up with a mechanism by which I can share 'data' between different Powershell processes. This would be in order to implement a kind of job system, whereby a function can be run in one Powershell process, complete and then someone communicate its status to a function run from another (distinct) Powershell process... </p>
  
  <p>I guess what I'd ideally like psjob results to be shareable between sessions, but this does not seem to be possible.</p>
  
  <p>I can think of a few dirty ways of achieving this (like O/S environment variables), but am I missing an semi-elegant way? </p>
  
  <p>For example: </p>
  
  <pre><code>Function giveMeNumber
  {
    $return_vlaue =  Get-Random -Minimum -100 -Maximum 100
    Return $return_vlaue
  }
  </code></pre>
  
  <p>What are some ways i could get this function to store it's return somewhere and then grab it from another Powershell session (without using a database).</p>
  
  <p>Cheers.</p>