The scripting engine coordinates the imaging run operating the hardware via ASCOM drivers. Typically there is a GUI for settings and for monitoring of the imaging run. A couple of examples:
Superstacker, a freeware VB.NET application written by the author circa 2004-7
Voyager, a semi-professional commercial application with drag-and-drop scripting and many advanced features