I have a variables $env that I'd like to use when traversing a powershell object: myObject.$env.connectionstring
This is not working, what I want is for Powershell to evaluate it like: myObject.Production.connectionstring ... instead I'm getting an empty string / null object.
Can I accomplish what I'm trying to do?