22 February 2023

Define powershell custom objects

 $hash = @{
    Prop1      = 'Value1'
    Prop2      = 'Value2'
    Prop3      = 'Value3'
}

$CustomObject = [pscustomobject]$hash

No comments:

Post a Comment