Add-Member allows new members to be added to existing objects.
Starting with an empty object, it is possible to add new properties:
PS> $empty = New-Object Object
$empty | Add-Member -Name New -Value 'Hello world' -MemberType NoteProperty
Methods may be added as well. For example, a method to replace the word world.