The run.file( ) method begins execution at the beginning of a file, but it respects [section] names in the sense that if it runs into a section name, then execution ends - just like the run.section( ) method.
So your code does nothing since it ends as soon as it hits [Main].
If you want to use run.file : don't put any [sections] in the file; if you want to use [sections] : use the run.section( ) method.
Is there an opportunity to call a skriptfile for example test.ogs from a skriptfile for example custom.ogs, when the called skriptfile test.ogs contains sections and when I want to call this section with run.section within this file, such as I tried in my code? May be with: