For a shortcut, set your targets as:
cmd.exe /c /q "ipconfig /release"
cmd.exe /c /q "ipconfig /renew"
Set the shortcut Window to run minimized to keep the DOS box from flickering up.
You can also do it by just entering the part in the quotes, but I find running it through a cmd shell runs a bit faster.