I don't know if it's a joke or not, but you should definitely write all those commands in a reusable script, and take care of the password one way or another. It could be run by a CI or anything else, and you won't be there to type this password. The usual question is: why do you want to run multiple commands at the same time? If you can answer this, you may find a better way to do this.
In your case, you can replace all the commands with sudo apt install firefox
.