Hi,
I can work on a script that can execute the commands mentioned in the requirement. I'd need the command line parameters that you wish pass, so that we could make appropriate variable substitution in the script.
Regarding the IP address, we may need to query the DHCP server (only when you have access to it), or maybe we can discuss some other means to extract it.
Cheers,
Rohit