Summary: Use Windows PowerShell to find the type of an object.
How can I use Windows PowerShell to easily find the type of object that is stored in a variable?
Use the GetType method (which all objects have):
PS C:\> $date = get-date
PS C:\> $date.GetType()
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True DateTime System.ValueType