Best Approach to Implement Automated Login for Electron App without Triggering Antivirus

I’ve built an account manager application using Electron that securely stores usernames and passwords. Now, I want to implement a login feature with the following requirements:

Retrieve the username and password from the Electron app and pass them to a login script.
(Optional) Automatically open the League of Legends client.
Automate the input of the username and password into the client, followed by pressing “Enter”.
I’ve noticed that many people achieve this kind of automation using tools like AutoIt or PyAutoGUI. However, I’m concerned that scripts or executables created with these tools are often flagged as viruses by antivirus software, especially when distributed.

Constraints:

I don’t want to run the entire Electron app with admin rights; I prefer requesting admin rights only once, perhaps during the installation of the automation script.
Signing the program is not an option due to budget constraints—this is a hobby project.
What are my best options to achieve this functionality? Is there a more secure and reliable way to handle this automation without triggering antivirus alerts, or am I overlooking something obvious?

So far, I’ve explored the following options:

AutoIt: I considered using AutoIt for the automation, as it’s commonly used for tasks like this. However, I found that AutoIt scripts are frequently detected as viruses by antivirus software, which would be problematic for distribution.

PyAutoGUI: I also looked into using PyAutoGUI within a Python script to automate the key inputs. However, I expect that compiled Python scripts might face similar antivirus detection issues, especially since they involve automating user input in another application.