From this tutorial you can learn, how to create a pascal scripting application and utilize new procedures, functions, variable mappings, etc....
If you like this tutorial, do not forget to SUBSCRIBE to my channel!
The sample code you can find at the link under the first comment.