title: compare-object issue using powershell
body: <p>looking for the best way to compare two system.objects. tried the compare-object option, doesn't seem to give the desired output..</p>
  
  <pre><code>&gt; $abc
  BGP summary information for VRF default
  Router identifier 192.168.0.3, local AS number 7251
  Neighbor Status Codes: m - Under maintenance
    Neighbor         V  AS           MsgRcvd   MsgSent  InQ OutQ  Up/Down State  PfxRcd PfxAcc
    10.12.103.119    4  7251               0         0    0    0    5d23h Connect
    10.46.252.121    4  7251               0         0    0    0    5d23h Connect
  
  &gt; $def
  BGP summary information for VRF default
  Router identifier 192.168.0.3, local AS number 7251
  Neighbor Status Codes: m - Under maintenance
    Neighbor         V  AS           MsgRcvd   MsgSent  InQ OutQ  Up/Down State  PfxRcd PfxAcc
    10.12.103.119    4  7251               0         0    0    0    5d23h Active
    10.46.252.121    4  7251               0         0    0    0    5d23h Estab 
  
  &gt; $abc.GetType()
  
  IsPublic IsSerial Name                                     BaseType
  -------- -------- ----                                     --------
  True     True     String                                   System.Object
  
  &gt; $def.GetType()
  
  IsPublic IsSerial Name                                     BaseType
  -------- -------- ----                                     --------
  True     True     String                                   System.Object
  
  &gt; Compare-Object -ReferenceObject $abc -DifferenceObject $def
  
  InputObject
  -----------
  BGP summary information for VRF default...
  BGP summary information for VRF default...
  </code></pre>