I have created a custom JSL function and loaded it into the global environment. Then, in the Graph Builder interface, I used the "Custom Script" feature to incorporate this function into the graph script. After that, I saved the Graph Builder script to the data table (as a table script).
When I manually run the Graph Builder script from the data table (by clicking the script button from the table), everything works perfectly—the custom function is recognized and the graph is generated correctly.
However, when I try to run the same table script programmatically using the Run Script() function (e.g., dt << Run Script("Graph Builder")), the script fails because it cannot find my custom function. It seems that Run Script() executes the script in an isolated context that does not have access to my globally defined function.
names default to here(1);
dt=current data table();
dt<<run script("Column 1 vs. Column 1");

Interestingly, built-in JMP functions are recognized fine, but my user‑defined function is not.
Has anyone else encountered this behavior? Is there a way to make Run Script() execute the table script in the same global namespace so that my custom function is visible? Any workarounds or explanations would be greatly appreciated.