Write-Host "Startup task created successfully." You can extend the startup task to also apply specific Intel GPU settings (e.g., Power plan = Maximum Performance, Scaling = Full Screen) by sending hotkeys or using Intel’s undocumented COM interfaces.
// Action: start the EXE td.Actions.Add(new ExecAction(exePath, "", null)); intel graphics command center startup task
// Register task ts.RootFolder.RegisterTaskDefinition(TaskName, td); Console.WriteLine($"Startup task 'TaskName' created successfully."); Write-Host "Startup task created successfully
CreateStartupTask();
public static void RemoveStartupTask()
string windowsAppsPath = @"C:\Program Files\WindowsApps"; if (!Directory.Exists(windowsAppsPath)) return null; Power plan = Maximum Performance
using (TaskService ts = new TaskService()) ts.RootFolder.DeleteTask(TaskName, false); Console.WriteLine("Task removed.");