Update BDEnc.bat: Code refactor