Search notes:

PowerShell: the automatic variable $psHome

$psHome is an ordinary System.String whose value points to the installation directory of PowerShell.
In non-Core PowerShell installations, this value seems to be C:\Windows\System32\WindowsPowerShell\v1.0.
Files that are found in a PowerShell Version 5.1 this installation directory include
Certificate.format.ps1xml
Diagnostics.Format.ps1xml
DotNetTypes.format.ps1xml
Event.Format.ps1xml
FileSystem.format.ps1xml
getevent.types.ps1xml
Help.format.ps1xml
HelpV3.format.ps1xml
powershell.config.json
powershell.exe
powershell.exe.config
PowerShellCore.format.ps1xml
PowerShellTrace.format.ps1xml
powershell_ise.exe
powershell_ise.exe.config
PSEvents.dll
pspluginwkr.dll
pwrshmsg.dll
pwrshsip.dll
Registry.format.ps1xml
types.ps1xml
typesv3.ps1xml
WSMan.Format.ps1xml

*.format.ps1xml files

Files whose names end in *.format.ps1xml are so-called formatting files. These files define how different .NET types are rendered at the end of a pipeline.
With PowerShell Version 6 and later, such formatting files are not found anymore in the $psHome directory because the formatting instructions are included in the source code of the objects.

See also

Other automatic variables

Index