title: PowerShell outputting array items when interpolating within double quotes
body: <p>I found some strange behavior in PowerShell surrounding arrays and double quotes. If I create and print the first element in an array, such as:</p>
  
  <pre><code>$test = @('testing')
  echo $test[0]
  
  Output:
  testing
  </code></pre>
  
  <p>Everything works fine. But if I put double quotes around it:</p>
  
  <pre><code>echo "$test[0]"
  
  Output:
  testing[0]
  </code></pre>
  
  <p>Only the $test variable was evaluated and the array marker [0] was treated literally as a string. The easy fix is to just avoid interpolating array variables in double quotes, or assign them to another variable first. But is this behavior by design?</p>