public static void Execute(
            IScriptExecutionEnvironment environment,
            RegistryKey rootKey,
            string registryKeyPath,
            string identity,
            RegistryRights registryRights,
            AccessControlType accessControlType)
        {
            SetRegistryKeyPermissionsTask task = new SetRegistryKeyPermissionsTask(
                rootKey,
                registryKeyPath,
                identity,
                registryRights,
                accessControlType);

            task.Execute(environment);
        }
        public static void Execute(
            ITaskContext context,
            RegistryKey rootKey,
            string registryKeyPath,
            string identity,
            RegistryRights registryRights,
            AccessControlType accessControlType)
        {
            SetRegistryKeyPermissionsTask task = new SetRegistryKeyPermissionsTask(
                rootKey,
                registryKeyPath,
                identity,
                registryRights,
                accessControlType);

            task.Execute(context);
        }