I created a script to send multiple commands in all active sessions, but these commands are in another function, so when I run this script all the commands are send to one session.
For nIndex = 1 to crt.GetTabCount
Set objCurrentTab = crt.GetTab(nIndex)
if objCurrentTab.Session.Connected = True Then
crt.Screen.Send "command 1" & vbcr
crt.Screen.Send "command 2" & vbcr