title: Powershell - Pass an array as argument to an executable called from command line
body: <p>Wondering how I could pass an array as command line argument to an exe file in powershell? Here is what I am currently working on</p>
  
  <p>I am calling an exe file from a powershell function in the following format</p>
  
  <pre><code>$firstParam = "test1"
  $secondParam = "test2"
  
  $thirdParam = @()
  $thirdParam = 'test3'
  $thirdParam = $thirdParam + 'test4'
  
  [void](&amp; '..\SomeApp.exe' "$firstParam" "$secondParam" "$thirdParam"
  </code></pre>
  
  <p>Here is what I am seeing as the input arguments in the Application.exe</p>
  
  <p><img src="https://i.stack.imgur.com/MvSUw.png" alt="Debugging information in the application">
  The third input parameter that was passed from the powershell was an array but it got concatenated (space separated) when passed to the exe file.</p>
  
  <p>Is it possible to pass "test3" as the third argument and "test4" as the fourth argument?</p>