so what im trying to do here is make the button optimize to set the priority of a an app inside task manager .any idea how? btw im not asking for a code im asking for a method of how to do it
import tkinter as tk
from tkinter import *
def optimize():
    
   
MyProgram = tk.Tk()
frame = tk.Frame(MyProgram)
frame.pack()
button = tk.Button(frame, 
                   text="QUIT", 
                   fg="red",
                   command=quit)
button.pack(side=tk.LEFT)
slogan = tk.Button(frame,
                   text="optimize",
                   command=optimize)
slogan.pack(side=tk.LEFT)
MyProgram.mainloop()