ProjectSettings.set_setting("application/run/main_scene", "res://title_screen/title_screen.tscn")
ProjectSettings.save()
For whatever reason, it does not work, even if I disabled safe save in Editor settings as suggested. And I'm also not running a paranoid antivirus.