title: How to use string.format with string array in powershell
body: <p>I want to output a formated string to console. I have one string variable and one string array variable.</p>
  
  <p>When I do this:</p>
  
  <pre><code>$arr = "aaa","bbb"
  "test {0} + {1}" -f "first",$arr
  </code></pre>
  
  <p>The output is this:</p>
  
  <pre><code>test first + System.Object[]
  </code></pre>
  
  <p>But I need output to be:</p>
  
  <pre><code>test first + aaa,bbb
  </code></pre>
  
  <p>Or something similar...</p>