Start a session in MobaXterm from batch script
From the MobaTek Blog
MobaXterm.exe -newtab ["<Command>"]
:This command can be used to start a new tab inside a running instance of MobaXterm (or start a new instance of MobaXterm if no other instance is running) and immediately execute a given MobaXterm command
So you would need to specify a ssh command to connect to your virtual machine.
You could also save the ssh connection (or any other connection type) as a "first level" bookmark and use the bookmark
-command instead:
MobaXterm.exe -bookmark "<Bookmark_name>"
:This command can be used to start a bookmark by specifying its name.
In your case, the command would look like this, if your bookmark would be called "linux-server"
start "" "C:\Program Files (x86)\MobaXterm\MobaXterm.exe" -bookmark linux-server
I'm providing example usage for opening mobaxterm with specific command. Below is an example of opening a MobaXterm portable Personal edition in a newtab mode with SSH and a specified username.
MobaXterm_Personal_20.6.exe -newtab "ssh -l username 192.168.1.99"