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
I am calling an exe file from a powershell function in the following format
$firstParam = "test1"
$secondParam = "test2"
$thirdParam = @()
$thirdParam = 'test3'
$thirdParam = $thirdParam + 'test4'
[void](& '..\SomeApp.exe' "$firstParam" "$secondParam" "$thirdParam"
Here is what I am seeing as the input arguments in the Application.exe
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.
Is it possible to pass "test3" as the third argument and "test4" as the fourth argument?