Maybe you can have some type of Windows Service which continually pools for
an inet connection and when it finds one, then it could start your process.
Have never done this before so you would need to research things like
determining when a connection is available, but this might get you started.