8,329 questions
Is the interface DHCP-enabled? If it is, this might work:
https://blog.oddbit.com/post/2012-11-04-powershell-wait-for-networking/
If the interface(s) use static address assignments you can get the router address from the interface use Test-NetConnection to see if it "alive".