Şu kodlarımda tasarımı daha iyi hale getir lütfen Spectre.Console kullanarak  using System;
using System.Diagnostics;
using System.Threading;
using Microsoft.Win32;
using SophiApp.Helpers;
using Spectre.Console;

namespace QuickOptimizer
{
    internal class Program
    {
        public static void Main(string[] args)
        {
            AnsiConsole.Render(new FigletText("QuickOptimizer").LeftJustified().Color(Color.Purple));
            AnsiConsole.MarkupLine("[bold cyan]Version[/]: v1.0");
            AnsiConsole.MarkupLine("[bold cyan]Developer[/]: ShadesOfDeath");
            AnsiConsole.WriteLine();


            var tasks = new (string, RegistryHive, string, string, object, RegistryValueKind)[]
             {
                ("Activating the Old Context Menu..", RegistryHive.CurrentUser, @"Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32", "", "", RegistryValueKind.String),
                ("Disabling Superfetch..", RegistryHive.LocalMachine, @"SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "EnableSuperfetch", 1, RegistryValueKind.DWord),
                ("Disabling System Restore..", RegistryHive.LocalMachine, @"SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore", "DisableSR", 1, RegistryValueKind.DWord),
                ("Disabling Fast Startup..", RegistryHive.LocalMachine, @"SYSTEM\CurrentControlSet\Control\Session Manager\Power", "HiberbootEnabled", 0, RegistryValueKind.DWord),
                ("Disabling Modern Standby..", RegistryHive.LocalMachine, @"SYSTEM\CurrentControlSet\Control\Power", "PlatformAoAcOverride", 0, RegistryValueKind.DWord),
                ("Setting Explorer This PC..", RegistryHive.CurrentUser, @"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "LaunchTo", 1, RegistryValueKind.DWord),
                ("Disabling AutoPlay..", RegistryHive.CurrentUser, @"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers", "DisableAutoplay", 0, RegistryValueKind.DWord),
                ("Disabling Thumbnail Previews in File Explorer", RegistryHive.CurrentUser, @"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "IconsOnly", 1, RegistryValueKind.DWord),
                ("Disabing Memory Compression..", RegistryHive.LocalMachine, @"SOFTWARE\Policies\Microsoft\Windows\StorageSense", "AllowStorageSenseGlobal", 0, RegistryValueKind.DWord),
                ("Disabling Program Compatibility Assistant..", RegistryHive.LocalMachine, @"SOFTWARE\Policies\Microsoft\Windows\AppCompat", "DisablePCA", 1, RegistryValueKind.DWord),
                ("Disabling Hibernation..", RegistryHive.LocalMachine, @"SYSTEM\CurrentControlSet\Control\Power", "HibernateEnabled", 0, RegistryValueKind.DWord),
                ("Disabling NTFS Last Access Time Stamp..", RegistryHive.LocalMachine, @"SYSTEM\CurrentControlSet\Control\FileSystem", "NtfsDisableLastAccessUpdate", 80000003, RegistryValueKind.DWord),
                ("Disabling Telemetry..", RegistryHive.LocalMachine, @"SOFTWARE\Policies\Microsoft\Windows\DataCollection", "AllowTelemetry", 0, RegistryValueKind.DWord),
                ("Disabling Advertising ID..", RegistryHive.LocalMachine, @"SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo", "DisabledByGroupPolicy", 1, RegistryValueKind.DWord),
            };

            AnsiConsole.Progress()
                .AutoClear(false)
                .Columns(new ProgressColumn[]
                {
                    new TaskDescriptionColumn(),    // Task description
                    new ProgressBarColumn(),       // Progress bar
                    new PercentageColumn(),        // Percentage
                })
                .Start(ctx =>
                {
                    foreach (var task in tasks)
                    {
                        var progressTask = ctx.AddTask($"[green]{task.Item1}[/]");
                        UpdateRegistry(progressTask, task.Item2, task.Item3, task.Item4, task.Item5, task.Item6);
                    }

                    AnsiConsole.WriteLine("► Disabing Memory Compression..");
                    Thread.Sleep(1000);
                    Process.Start(new ProcessStartInfo { FileName = "powershell", Arguments = "Disable-MMAgent -mc", UseShellExecute = false, RedirectStandardOutput = true, CreateNoWindow = true });
                });
        }

        static void UpdateRegistry(ProgressTask progressTask, RegistryHive hive, string key, string name, object value, RegistryValueKind kind)
        {
            Thread.Sleep(1000);
            RegHelper.SetValue(hive, key, name, value, kind);
            progressTask.Increment(100);
        }
    }
}