In large-scale engineering experiments, such as hydrodynamics and aerodynamics experiments, computer aided software (CAE) is always used to manage a large number of parameters and experimental data to simulate the physical field through finite element analysis. To improve work efficiency, one of the most practical methods at present is to record user operations in the CAE software to script files with domain specific language (DSL), such as Python, and replay those script files to reproduce user operations. In this paper, a common script module ScriptEngine supporting the recording and playback function is introduced, and it can be embedded into any CAE software to automatically complete grid division, flow field calculation, pre-processing and post-processing by running the scripts. Furthermore, a demo program embedding ScriptEngine into an opensource FastCAE was developed and the results show that running the scripts recorded by ScriptEngine could obtain the same results as the user operations and ScriptEngine can be used as a common script module in any CAE software and other desktop software which needs the recording and playback function.