Execute terminal command opens finder window?

Nevermind, I found out what was happening. Apparently if the BTT app is in the foreground, triggering an action from a context menu seems to send it to the background, but if no windows are open, it opens a new Finder window. If I already have another app in the foreground other than BTT, it works as expected.