Check if the returned IP from PowerShell is valid

The first response which the Get network PowerShell call gives the proper
IP address, so wait until the response returns a valid one.

NOTE: Here the check is applied for IP(V4) Format. May be in future this condition has to be revisited.