New-object

From WikiWiki
Jump to navigation Jump to search
$var=@()
$var += New-Object -TypeName PSObject -Property @{name=variable;name2=variable2}