def run_config(path, source=None, config_name=None, config_data=None, config_data_source=None, script_parameters=None, salt_env='base'):
 ret = compile_config(path=path, source=source, config_name=config_name, config_data=config_data, config_data_source=config_data_source, script_parameters=script_parameters, salt_env=salt_env)
 if ret.get('Exists'):
  config_path = os.path.dirname(ret['FullName'])
  return apply_config(config_path)
 else:
  return False

def run_config ( path , source = None , config_name = None , config_data = None , config_data_source = None , script_parameters = None , salt_env = 'base' ) : ret = compile_config ( path = path , source = source , config_name = config_name , config_data = config_data , config_data_source = config_data_source , script_parameters = script_parameters , salt_env = salt_env ) if ret . get ( 'Exists' ) : config_path = os . path . dirname ( ret [ 'FullName' ] ) return apply_config ( config_path ) else : return False
compile a dsc configuration in the form of a powershell script and apply it .