I just copied and pasted your code into a button on a blank form and it executed properly without opening the console.
Make sure any console windows you have open on other documents are closed. The console window is global - if you have 2 documents open in Acrobat and open the console on 1, then switch to the other and perform an action, the console will then appear in that window due to its "always on top" setting.
I just did the same test and pasted the code into a button on a blank form and it executed properly without opening the console too!!
Why it feels the need to open the console when run from a batch sequence beats me, thought it might have been one of the settings to display errors etc but even when they are all de-activated up pops the console each time.
A simple one liner does not open the console so I thought maybe it was a code error that I was missing.