https://www.electronforge.io/config/makers/squirrel.windows#handling-startup-events
this document has the answer what you need