Magento 2 adding custom option programmatically

Magento 2 have import custom options is excellent, but some time you want to more have more control for custom options product, here is the script to add custom options to the added simple product in magento 2

This is a very basic to add a custom option to a product, hopefully it’s can help you to do some extra stuff for Magento 2 product updates.