Image of ui hii i was working on a similar thing with electron i wrote a shell script to run automatically when the app starts, this enables me to find out the hardware specs of the pc that my app is currently running on, with the output from the script, i pass it to the front end and update the ui
so in short :
scripts get hardware specs
Main process runs the script
Exposes result through IPC
Renderer calls IPC and renders the string on the ui like the picture i have above