I think you can add formula columns to formula depot. Table:
jthi_0-1654189563479.png
Formula depot from Analyze / Predictive Modeling / Formula Depot
jthi_1-1654189579262.png
jthi_2-1654189621042.png
and for scripting there seems to be Add Formula from Column
jthi_3-1654189731532.png
-Jarmo