loadmacrotree is not needed, it is an old deprecated command. I never use it.
“file:///Users/-----/test_calc.html?
Using the “macro as HTML table” file is also the old method. Try with the new ui.vision.html file method <= same link as @User9898 posted
See also here: Run command do not work when is inside a macro started from command line (batch file) - #16 by admin
Yes, that is how it should work automatically. If it still does not work with “ui.vision.html”, please record a screen video and post it here, and we can have a look at it.