How to Export Simple Product CSV from Magento 2 Programmatically

How to Export Product CSV Programmatically using custom Scripts. Create one custom.php File into the root folder.

...