I have an array of variables and was wondering if its possible to get/return the name of each variable from the array (not the value of the variable)?
For example, something like:
$varArray = @($var1, $var2, $var3)
ForEach ($v in $varArray)
{
*return the name of the variable here, not the value*
}
So I'd have something like this:
var1
var2
var3
NOTE: I do plan on getting the "values" of each variable at a different point in the script, so just need the variable names here.
Thanks in advance!