title: Fatal Error: Failed to execute "script name" | auto-py-to-exe
body: <p>This is the code. I'm compiling it to an exe with auto-py-to-exe.</p>
  <pre><code>from tkinter import *
  import os
  
  master = Tk()
  master.title('Power Options')
  master.geometry(&quot;300x100&quot;)
  master.wm_iconbitmap(&quot;poweroptions.ico&quot;)
  
  def fun():
      os.system('cmd /k shutdown /s /f /t 0')
  
  def fun2():
      os.system('cmd /k shutdown /r /f /t 0')
  
  def fun3():
      os.system(&quot;rundll32.exe powrprof.dll,SetSuspendState 0,1,0&quot;)
  
  b1 = Button(master,text = &quot;  Shutdown  &quot;,command = fun,activeforeground = &quot;red&quot;,activebackground = &quot;pink&quot;,padx=10)
  b2 = Button(master,text = &quot;   Restart   &quot;,command = fun2,activeforeground = &quot;red&quot;,activebackground = &quot;pink&quot;,padx=10)
  b3 = Button(master,text = &quot;    Sleep    &quot;,command = fun3,activeforeground = &quot;red&quot;,activebackground = &quot;pink&quot;,padx=10)
  
  b3.place(relx=0.5, rely=0.5, anchor=CENTER)
  b1.place(relx=0.1, rely=0.5, anchor=W)
  b2.place(relx=0.9, rely=0.5, anchor=E)
  
  master.mainloop()
  </code></pre>
  <p>When I compile it, it gives me the error in the title when I run it. The script runs fine when I run it as a python (.py) file.</p>