How to write scripting in prepomax and in which language does prepomax work?

how to write scripting in prepomax and in which language does prepomax work?

You can use the Keywords Editor or directly edit the INP file.

There’s some new functionality for that: A new developer/preview PrePoMax version v2.1.7 has been released - #3 by Matej but not much more than this for now.

There is no direct support for scripts. The PrePoMax is written in C#.

i mean, in prepromax where does that backend script writes for each operation that we perform

You can see the history of commands using the Edit → Edit History.

In the code, there is a class called CommandsCollection. It has a method called ExecuteAllCommands which does the regeneration.