Assume we have:
$a = @(1, @(2, @(3)))
I would like to flatten $a to get @(1, 2, 3).
$a
@(1, 2, 3)
I have found one solution
You can use .NET's String.Join method.
[String]::Join("",$array)