I know similar questions have been asked on forums, but due to the constraints of my script, the other solutions are either too complicated or do not work. Please forgive my lack of knowledge in the topic
I have a small script that starts when the user logs in, and keeps running until the computer is shutdown(or script is terminated).
I configured the script to run like so using "Open Applications at Login" feature on mac.

But everytime I log in, the terminal is visible and pops up:

I do not want the terminal to be visible. Instead I want it to be automatically hidden when the script starts. It was incredibly simple to achieve this in Windows, but Mac OS makes doing such a simple task incredibly complicated. I saw many solutions about this topic through the usage of the Automator App in Mac, but my script calls a python command with some arguments, so the terminal still pops up and is visible and can't be automatically hidden even using the Automator App, I have already tried that.
I am using MacOS Monterery. The script only has to run on login for 1 user. I am using the steps mentioned in this answer currently. Currently I already have the script running on login, but the terminal is not hidden. Any info pointing me in the right direction would be helpful.
launchd. See this post for an idea how to do this: https://apple.stackexchange.com/a/249452/119271 – Allan Apr 15 '23 at 15:06