In PowerShell, how do you get an object\'s property value by specifying its name (a string)? I want something like the following:
$obj = get-something # Vie
Sure
write-host ($obj | Select -ExpandProperty "SomeProp")
Or for that matter:
$obj."SomeProp"