get-variable varName
returns a System.Management.Automation.PSVariable
object: PS C:\> $x = 42 PS C:\> (get-variable x).GetType().FullName System.Management.Automation.PSVariable
PSVariable
has a Description
property which allows to describe some of the predefined PowerShell variables: PS C:\> (get-variable PID).description Current process ID PS C:\> (get-variable informationPreference).description Dictates the action taken when a command generates an item in the Information stream