Creating a touchbar item to invoke an application's hotkey

Hello everyone,

I am new user to BTT. I was modifying the GoldenChaos so that I can show/hide the CARROTWeather mini window when tapped, and show/hide the main window when long pressed.

The mini window feature works perfectly, as the feature is built into the app as described with a hotkey. However, the main window is implemented poorly, and just activating the app/ clicking the dock icon does not work. My partial workaround is the use a menubar item on the app and a shortcut I assigned to open a window of the app with an applescript I invoke with a named trigger upon long pressing:

tell application* "CARROTweather" to activate
tell application "System Events"
keystroke "n" using {command down, option down, control down}
end tell

The problem with this script is that the main window opens on its own whenever I log into my system or turn it on. Otherwise, the long press functionality I wanted works as intended.

Can anyone help with this so that it won't start on its own?