Thank you,

Dr. Geo is a full blown-up application. So far I do not intend to write
soemething like that. Morely I intend to use as less GUI as
necessary/possible. Just simple input-/output in a console window or
something like that.

But maybe BASIC or Pascal is more suitable for that?
Roland.

I would not see why :)
You define a package with classes and then use --eval to invoke your class and a message

pharo yourimage.image --eval '1+3'
prints 4 and this is exactly doing that

read this chapter even if it is more general