title: PowerShell, Calling a function from a other PS Script and returning a Object
body: <p>How it is possible to call a function from a other PowerShell script an returning the object?</p>
  
  <p>Main Script:</p>
  
  <pre><code># Run function script
  . C:\MySystem\Functions.ps1
  
  RunIE
  
  $ie.Navigate("http://www.stackoverflow.com")  
  # The Object $ie is not existing
  </code></pre>
  
  <p>Functions Script:</p>
  
  <pre><code>function RunIE($ie) 
  {
  $ie = New-Object -ComObject InternetExplorer.Application
  }
  </code></pre>