$Item.Reference() was never set

Used $Name instead of $PropertyName to attach the ScriptMethod