Change data of handheld item

How do I change the custom model data of an item in a specific inventory slot?
Continue to help post