title: How to get variable name in PowerShell
body: <p>I have an array of variables and was wondering if its possible to get/return the <strong>name</strong> of each variable from the array (not the value of the variable)?</p>
  
  <p>For example, something like:</p>
  
  <pre><code>$varArray = @($var1, $var2, $var3)
  
  ForEach ($v in $varArray)
  {
     *return the name of the variable here, not the value*
  }
  </code></pre>
  
  <p>So I'd have something like this:</p>
  
  <p>var1</p>
  
  <p>var2</p>
  
  <p>var3</p>
  
  <p>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.</p>
  
  <p>Thanks in advance!</p>