E Invoice created by Item Code

I want an e-invoice to be made from the item code.
can you help me with a script?

Basically, the e-invoice is created by Item Name (It is Default ERPNext).