i am trying to code in powershell where it needs i use a value of a variable as a variable itself ; is there a proper syntax to do it?
here is the example;
$color = "red"
$red = 1
how can i obtain the value of 1? $($color) $"$color" etc give out the errors.
I can explain more regarding the issue i am working with if needed.