added custom main test for windows batch
added cli option to set a custom main class for windows batch