I have functions and each function returns an return code. I want to output the following:
function ReturnCode
-------- ----------
wrapkey 255
mapkey 233
delkey 0
I tried:
$Outarray = @()
$Outarray += $_.SetProperty("WrapKey") | select "WrapKey", ReturnCode
$Outarray += $_.SetProperty("MapKey") | select "MapKey", ReturnCode
$Outarray | Format-Table
How can I do this?