How to Override/Add a function of ERPNext inbuilt {doctype}.js

Hello there,
I have this doubt of how to add my Form Sripts on the doctypes like (Invoice, Items, Customers etc)which are core to the ERPNext. I dont’ want to do through admin UI. I am more interested in doing in my custom app.

So which property in hooks.py can help me to take on it?

@Abhiraj_Tulsyan doctype_js hook

Thanks