title: PowerShell recursive object properties
body: <p>I need a method that gives me all the properties of an object (recursively).
  It is not known how many sub-objects the transferred object has.</p>
  <p>Example object:</p>
  <pre><code>$Car = [PSCustomObject] @{
      Tire          = [PSCustomObject] @{
          Color = &quot;Black&quot;
          Count = 4
      }
  
      SteeringWheel = [PSCustomObject]@{
          Color   = &quot;Blue&quot;
          Buttons = 15
      }
  }
  </code></pre>
  <p>Thank you so much!</p>