tell application "Terminal"
do script "echo Hello world"
end tell
tell application "iTerm"
set newWindow to (create window with default profile)
tell current session of newWindow
write text "echo Hello world"
end tell
end tell
tell application "Terminal"
do script "echo Hello world"
end tell
tell application "iTerm"
set newWindow to (create window with default profile)
tell current session of newWindow
write text "echo Hello world"
end tell
end tell