From what I understand, zask's "issue" is that when he double-clicks a batch file on his desktop, it doesn't have focus, so they need to click it to give it focus, and they want it to do this "automatically".
The confusion likely stems from how this behaviour makes no sense whatsoever. I can't reproduce it anywhere, on any system. if I double click a batch file, it launches and it has the focus.