Windows Route Add when Gateway is text instead of IP

You can add on-link routes via a specific interface without explicitly mentioning the gateway address using the following syntax:

ROUTE ADD 162.29.152.249 MASK 255.255.255.255 0.0.0.0 IF <X>

Where <X> is the ID of the network interface, which you can find out using ROUTE PRINT.