When I pipe an object to Get-Member, I get a very useful listing of methods, properties, etc. At the very top, i.e., the first line of the output is something that begins with info on the object’s type. Examples:
TypeName: System.Data.Dataset TypeName: System.String
I can see a GetType() method in the Get-member output list, but how do I invoke it to get just that first line (assuming this is the correct method needed)?
Would be grateful for any tips or suggestions.