You can do this with "&&"
you could put this in a "script.bat":
sudo docker run -d --link selenium-hub:hub selenium/node-chrome && sudo docker run -d --link selenium-hub:hub selenium/node-firefox
And if you want to wait between the commands, use something like this:
sudo docker run -d --link selenium-hub:hub selenium/node-chrome && sleep 1000 && sudo docker run -d --link selenium-hub:hub selenium/node-firefox
You can chain this indefinetely. For example you could do sudo apt update && sudo apt upgrade && sudo apt autoremove
As stated in another answer, &&
this will check if the previous command was successful. If you don't want any validation you have to use ;
for BASH or &
for CMD