Modify hook tests to use a bat file on Windows