automate the configuration process

Every time I setup KODI, I make 37 configuration changes, to customize it to my needs. I wrote everything down so I don’t have to remember it. These changes include interface, region, language, player, sources and other changes.

So I was wondering if there’s a command line option to make these changes, so I can automate the process with a script. Either a batch file on Windows or Bash script on Linux.

Ideally every single configuration option in KODI, should have an equal command line option. Or configuration file that can be modified.
Is this possible?