title: How to get a object member in string format
body: <p>I'm not at all sure what the heck I'm doing wrong, I'm running the manage-bde (command line to return bitlocker encryption status) and piping it to a select-string to catch the specific encryption percentage/status with a very specific regex.  Select string for some reason returns the whole line, but a property called "Matches" returns the EXACT information I need, but it's a Matchinfo object.  There's a method called ToString but it doesn't return at all what I need, seems to be the object info.  I just want the output in string format to display in a write-progress gui.</p>
  
  <p>note: quite new to powershell still.</p>
  
  <pre><code>$act = Invoke-Expression -Command "manage-bde -status C:" | select-string -Pattern "(?&lt;=(Percentage Encrypted:)).*"  | Select-Object -Property Matches -Last 1
  
  $act.toString()| Out-Host
  </code></pre>