Is there any code to not display the yes/no (UAC - User Account Control) message to run as adm?

Usually an IDE or Text Editor will autodetect typos. Are you editing in Notepad or something?

Two possible ways on a per-script basis. First is to look up a program, “elevatedshortcut.exe”. The other will take a little research. It involves creating a task scheduler entry. Both methods will allow you to create a shortcut (link) that can run as admin without requiring UAC.

Both methods will do what you want without disabling UAC globally.

see https://www.thewindowsclub.com/create-elevated-shortcut-run-programs-bypass-uac

in visual studio and IDLE

I’m going to create a service on windows because then it will run automatically and without showing the UAC and that’s what I need