added a .bat script that gets an applications error code