Hello,
yes, you can refer to FreeMASTER User Guide and its examples of a runtime data exchange with JavaScript, VBA/Excel or Matlab scripts. FreeMASTER exports methods that Matlab and other external tools may call to access variables or to upload/download data to/from microcontroller's RAM.
Also FreeMASTER Lite can be used in a script-based environment.
I recommend to go through the User Guide and the FreeMASTER related trainings available here.
Regards,
Michal