I am newbie in powershell and have some problem.
Scenario
In my pipeline and scripts I have defined variable $myVar = 'someValue'
. I store its name in $varName = 'myVar'
.
Question
Is it possible to get myVar value by referencing $varName? I Tried something like: $($varName)
but it returned only myVar
, not 'someValue'