title: How catch return value in a Powershell script
body: <p>I have a powershell script (.ps1) that <strong>execute other Powershell script</strong> that has a return value.</p>
  
  <p>I invoke to the script with this command:</p>
  
  <pre><code>$result = Invoke-Expression -Command ".\check.ps1 $fileCommon"
  
  Write-Output $result
  </code></pre>
  
  <p>The output is only the <code>Write-Ouput</code> that have the other script but not the return value that is <code>$true</code> or <code>$false</code>.</p>
  
  <p>How can I catch the return from the other script?</p>