Yes, you can run multiple linux commands in ssh to manage your server or to achieve anything you wish. Example:
If you wish to repair multiple databases, you could run commands as:
sudo mysqlcheck -r db_name && sudo mysqlcheck -r db_name2 && sudo mysqlcheck -r db_name3 etc. You just need to add && between commands. Refer our website for more SSH commands/scripts.