'Wocommerce Create Order programatically with name

I am trying to create an order in WoCommerce pragmatically which i am able create successfully. I have few more products which doesn't exist in the system but i want to add them in order which i am creating .

How i can do it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source