title: Powershell equivalent of Bash Brace Expansion for generating lists/arrays
body: <p>When writing a Bash script you can use <a href="http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_04.html" rel="noreferrer">brace expansion</a> to quickly generate lists:</p>
  
  <p><img src="https://i.stack.imgur.com/drkLt.png" alt="Bash Brace Expansion"></p>
  
  <p>What is the simplest way to generate a similar list in Powershell? I can use the .. or , operators to <a href="http://blogs.technet.com/b/heyscriptingguy/archive/2011/12/09/easily-create-and-manipulate-an-array-of-arrays-in-powershell.aspx" rel="noreferrer">generate an array</a>, but how can I prefix the items with a static string literal?</p>
  
  <pre><code>PS C:\Users\gb&gt; 1..5
  1
  2
  3
  4
  5
  
  PS C:\Users\gb&gt; "test"+1..5
  test1 2 3 4 5
  
  PS C:\Users\gb&gt; "test","dev","prod"
  test
  dev
  prod
  
  PS C:\Users\gb&gt; "asdf"+"test","dev","prod"
  asdftest dev prod
  </code></pre>