It is not DOS commands, they are shell commands from the windows command line.  Also, that will not display your WAN IP, if you go to whatismyip.com it will display your WAN IP.
If you are looking at keeping track of dynamic IPs, I suggest you look into something like dyndns.org and use their software to track your IP dynamically.