Electron app using high cpu usage

Im building electron application while building application i need to get detail about all the hardware devices detail which is connected to system for that am using node-wmi. but when im using node-wmi it creating multiple instance of it in windows task manager and also creating 100 process instance .
can anyone please suggest me how i mmake low cpu usage and memory usage in it.