title: powerShell: get "Select-Object -Property" boolean state to use in condition
body: <p>I use some Powershell command to get if the property of an object is true or false:</p>
  
  <pre><code>Get-ComputerInfo | Select-Object -Property OsPortableOperatingSystem
  
  OsPortableOperatingSystem
  -------------------------
                      False
  </code></pre>
  
  <p>Then I would like to check it and take a decision based off that: </p>
  
  <pre><code>if (OsPortableOperatingSystem)
       {dosomething}
  </code></pre>
  
  <p>How can I get the boolean result?</p>