just write the commands in a script and run it