How to write your first script

If you are moderately savvy on the command line, you can invoke BC by saying BComp.exe (or on Linux & Mac just BComp), followed by a filename where you have stored a script
When scripting, you can start by copying one from these examples and then fine tune it using the comprehensive list of syntax.
The list of script commands in Beyond Compare is a sub-subset of the GUI commands.