Selecting just the value from an object

I have the following code:

$v = (invoke-command -ScriptBlock {Get-ItemProperty HKLM:\SOFTWARE\WOW6432Node\TeamViewer} |Select-object -Property  "InstallationDirectory")

When I echo out $v I get:

InstallationDirectory
---------------------
C:\Program Files (x86)\TeamViewer

I would like to have just “C:\Program Files (x86)\TeamViewer” in $v.

Help
Thanks,
Paul.

$v = Get-ItemProperty HKLM:\SOFTWARE\WOW6432Node\TeamViewer | Select-Object -ExpandProperty  "InstallationDirectory"

… or shorter …

$v = (Get-ItemProperty HKLM:\SOFTWARE\WOW6432Node\TeamViewer).InstallationDirectory

Olaf is cool! Very cool!