I need to remove a member (specifically, a NoteProperty) from an object. How do I accomplish this?
I don't think you can remove from an existing object but you can create a filtered one.
$obj = New-Object -TypeName PsObject -Property @{ Test = 1}
$obj | Add-Member -MemberType NoteProperty -Name Foo -Value Bar
$new_obj = $obj | Select-Object -Property Test
Or
$obj | Select-Object -Property * -ExcludeProperty Foo
This will effectively achieve the same result.