is anyone aware of a way to add a firewall exception on startup to save the user the hassle of the pop up?
You can’t ‘silently’ add a firewall exception programmatically.
What would be the point of a firewall if programs can just add themselves as exceptions without the user being asked to allow it?