2 commands at the same time, how?

I want to start this commands at the same time (blue and red):

:local thisbox [/system identity get name]
:local thistime [/system clock get time]
:local bitps
:local result

/tool bandwidth-test 10.11.11.11 duration=8s tcp-connection-count=1 direction=transmit protocol=tcp user=blabla password=blabla

:set result 1
:for i from=1 to=5 do={
/interface monitor-traffic ether1 interval=1s do={:set bitps (tx-bits-per-second)} once
if ($bitps < 10000000) do={
:set vysledek 0;
:log info “less than 10mbit”
} else={ :log info “too much”
}
:delay 1s
}

Can you help how?

I don’t think you can do that within the same script.

You can assign each piece of code into a scheduler script that you set to run essentially immediately, and you can create both scripts from the same original script. But that way, the scripts won’t be able to share information with the main script, except perhaps by setting global variables that the main script eventually reads.

Is possible to run 2 different commands at the same time using one script?