powershell an object in object code example
Example: powershell create object
# Creating a PSCustomObject in Powershell
$MyDetails = @{
Name = 'Sean'
Height = '188cm'
}
$Me = New-Object -TypeName PsObject -Property $MyDetails
# Creating a PSCustomObject in Powershell
$MyDetails = @{
Name = 'Sean'
Height = '188cm'
}
$Me = New-Object -TypeName PsObject -Property $MyDetails