You could create your own "wait for network" loop like so...

 Code:
While not OSping("google.com")
  ? "looping"
Loop

Function OSping($sComputer, OPTIONAL $timeout)
   $timeout = IIf(Len($timeout),$timeout,500)
   Shell '"'+%COMSPEC%+'" /c ping -n 1 -w '+$timeout+' '+$sComputer+' |find /C "TTL=" >nul'
   $OSping = not @ERROR
EndFunction