Hello,
In order to launch your .bat file you can also use the predefined
Launch file custom action and enable the
Hide program's window option from the custom actions properties and the main window or console of the launched program will not be visible.
You can also take a look on the
Hide command window article which may be useful to you.
Please let us know if that helped.
Best regards,
Dan