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.
Example object:
$Car = [PSCustomObject] @{
Tire = [PSCustomObject] @{
Color = "Black"
Count = 4
}
SteeringWheel = [PSCustomObject]@{
Color = "Blue"
Buttons = 15
}
}
Thank you so much!