hi all,
im making an automatically programming procedure, that so far works well with the memtool 4.3.
i did an .mtb file and via batch script i open the memtool with this mtb file and it programs my "SAK-XE164FN-24F80L".
the .mtb file goes like this:

connect
open_file "<path>.hex"
select_all_sections
add_selected_sections
program
disconnect
exit

my question is, can i programatically tell by which com port to program the device?
i dont want the user to interact with the GUI (Target->Setup-> select com port ) since the com port my change from time to time...

or, is there other way to program the MCU with other scripts/softwares?