We have bash indirect expansion variables as follows ${!variable}
Is there any equivalent syntax in powershell?? If no, is there any workaround?
Adding Example $username_master="SomeValue"
$branch="master"
$name="username_"+$branch
$value=$($name) --> Here it should resolve $name -> username_master then should resolve $username_master -> "SomeValue".
Thus echo $value should output "SomeValue"
The same can be achieved in bash by ${!value} which outputs "SomeValue", how to achieve the same in powershell?
Thanks in advance