Shorthand syntax for initializing object properties in powershell
Docs: MSDN - PSCustomObject
Powershell v2.0
$object = New-Object -TypeName PSObject -Property @{
'Name' = 'Susan'
'Age' = 32
}
Powershell v3.0
$object = [PSCustomObject]@{
'Name' = 'Susan'
'Age' = 32
}
See also: new-object