[bugfix] repaired windows bat scripts for ENDORSED variable