code for the button
hou.pwd().hdaModule().createCommand.main()
do a python module called PythonModule
import toolutils
createCommand = toolutils.createModuleFromSection( 'createCommand', kwargs['type'], 'createCommand')
addToCommand = toolutils.createModuleFromSection( 'addToCommand', kwargs['type'], 'addToCommand')
kickCommand = toolutils.createModuleFromSection( 'kickCommand', kwargs['type'], 'kickCommand')
createSwitchAndFile = toolutils.createModuleFromSection( 'createSwitchAndFile', kwargs['type'], 'createSwitchAndFile')