The following script:
cls
function test_me([string]$testVar, $my_array)
{
Write-Host $testVar
}
$test_array = "a","b"
test_me "z", $test_array
Produces the following result:
z System.Object[]
I only want to reference $testVar
Why is System.Object[] getting returned to the Write-Host?