Hi @Joe ,
here the function works. It looks like you have to call the function a little different:
Function A {
PARAM ($b, $c)
$H = @{
b = $b
c = $c
}
$z = $h | ConvertTo-Json
Write-Host $z
}
# This works
A -b ValueB -c ValueC
# This works as well
A ValueB ValueC
Output looks like this in both cases:
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten