The values of $FileLocation and $Obscure will never be the same. Let me try to give a better example.

To keep it simple, let's say I need to copy some files to one of 10 locations. I have 10 variables set -
$location1 = “c:\windows\some\obscure\path”
$location2 = “c:\program files\some\other\path”
etc...

The only way that I know where to copy the files to is to read an external file which will contain the location. This will NOT be the full path - only one word. For the sake of this example, let's say the file contains the word "location2". Now I know where I need to copy the files to and have a new variable - $x=location2. Lastly, I need to string together the command to copy the files and somehow match up the value of $x with the variable with the matching name - $location2.