It will get saved to Enhanced Log (or workflow builder most likely). I think you have to capture it from there and then make slight modifications to add it to your table script
I this case it could be enough if you take this script
and remove unnecessary parts. From
// Save Columns: Prob Scores
Local({obj},
obj = Data Table("Big Class") << Distribution(
Continuous Distribution(Column(:height), Process Capability(0))
);
obj << Save("Prob Scores");
obj << Close Window;
);
to
obj = Distribution(
Continuous Distribution(Column(:height), Process Capability(0))
);
obj << Save("Prob Scores");
You might also want to drop the table name. You can save this as table script
obj = Distribution(
Continuous Distribution(Column(:height), Process Capability(0))
);
obj << Save("Prob Scores");
But depending on what you are doing I would suggest you also check out workflow builder
-Jarmo