Would this work as well?
PHP Code:
AutoExecConfig_SetCreateFile(true);
AutoExecConfig_SetFile("test1");
AutoExecConfig_SetFile("test2");
AutoExecConfig_CreateConVar("sm_test1", "1", "test1");
AutoExecConfig_CreateConVar("sm_test2", "2", "test2");
AutoExecConfig_ExecuteFile();
__________________