updated PSAddMember extension to target .NET objects as well