I would like to print in the icon window saved models with the help of a UDF with an outfile --write command. The idea is that the model is correctly specified and then the printing function takes the name of the Model as argument and saves a txt file.

How could this be achieved?

Second, I noticed a small bug in the .show command as illustrated below:
Names starting with numbers are allowed but fail with .show.

open data4-1
Model1 <- ols 1 0 2 3 4 --quiet

"Model 1" <-  ols 1 0 2 3 4 --quiet
"Model 1".show

"1 a" <- ols 1 0 2 3 4 --quiet
"1 a".show