[Moto G5 Plus Questions & Answers] Nivead:
I'll show you how to make your own batch file for flashing as the motorola potter firmwares can be different depending on models and regions,

Using this firmware file for an example : XT1687_POTTER_RETUS_8.1.0_OPS28.85-17-6-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip ; when its unzipped it has the following files:

<DIR> ..

16,777,216 adspso.bin

16,777,216 boot.img

5,238,272 bootloader.img

3,065 flashfile.xml

3,084,288 fsg.mbn

46,592 gpt.bin

2,238,617 logo.bin

73,647,644 NON-HLOS.bin

107,119,556 oem.img

902 POTTER_OPS28.85-17-6-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.info.txt

21,073,920 recovery.img

0 regulatory_info_default.png

2,757 servicefile.xml

0 slcf_rev_d_default_v1.0.nvm

264,598,216 system.img_sparsechunk.0

262,670,496 system.img_sparsechunk.1

252,213,992 system.img_sparsechunk.2

268,432,544 system.img_sparsechunk.3

268,433,356 system.img_sparsechunk.4

268,432,600 system.img_sparsechunk.5

256,544,424 system.img_sparsechunk.6

268,349,228 system.img_sparsechunk.7

260,241,680 system.img_sparsechunk.8

24 File(s) 2,615,926,581 bytes

In the zip is a file named servicefile.xml. it contains the basic flashing information in a format for a motorola flashing program. open it with a browser and you will see the file looks like this:

<?xml version="1.0"?>

-<flashing>

-<header>

<phone_model model="potter"/>

<software_version version="potter-user 8.1.0 OPS28.85-17-6-2 77e7 release-keysM8953_46.55.07.90R"/>

<sparsing max-sparse-size="268435456" enabled="true"/>

-<interfaces>

<interface name="AP"/>

</interfaces>

</header>

-<steps interface="AP">

<step var="max-sparse-size" operation="getvar"/>

<step var="fb_mode_set" operation="oem"/>

<step operation="flash" partition="partition" filename="gpt.bin" MD5="489d6b8d3eca39b22800c4d5717e926f"/>

<step operation="flash" partition="bootloader" filename="bootloader.img" MD5="5a33699231f57cf94c1d0ec56693a847"/>

<step operation="flash" partition="modem" filename="NON-HLOS.bin" MD5="840f068078f980fabc2eec1aaf057566"/>

<step operation="flash" partition="fsg" filename="fsg.mbn" MD5="dff935a653303f210130b4a029714f4d"/>

<step operation="erase" partition="modemst1"/>

<step operation="erase" partition="modemst2"/>

<step operation="flash" partition="dsp" filename="adspso.bin" MD5="3089bea3a386ef7703f0761f72db0383"/>

<step operation="flash" partition="logo" filename="logo.bin" MD5="32291cb6d5e322adeb861f0ac2c00b94"/>

<step operation="flash" partition="boot" filename="boot.img" MD5="8489391460938a2d9797e66ada27c9bd"/>

<step operation="flash" partition="recovery" filename="recovery.img" MD5="4c87df3db8b53b2610ff99404f0c81b5"/>

<step operation="flash" partition="system" filename="system.img_sparsechunk.0" MD5="8bc4426fe24d2694959823461dfc3594"/>

<step operation="flash" partition="system" filename="system.img_sparsechunk.1" MD5="ce82f14b794726c73556c0ebc5c0e5d0"/>

<step operation="flash" partition="system" filename="system.img_sparsechunk.2" MD5="8a85a197f79d87787fc45ceb3c809e82"/>

<step operation="flash" partition="system" filename="system.img_sparsechunk.3" MD5="f372a5448864e1340556a0dff80cd7e3"/>

<step operation="flash" partition="system" filename="system.img_sparsechunk.4" MD5="538986b313433922893dbefeaec8bb68"/>

<step operation="flash" partition="system" filename="system.img_sparsechunk.5" MD5="2990ec70c366053aff88b0c8b47d369f"/>

<step operation="flash" partition="system" filename="system.img_sparsechunk.6" MD5="29aaf05f7f2ec4ef16753339c7f217c0"/>

<step operation="flash" partition="system" filename="system.img_sparsechunk.7" MD5="925a19b12bbec6767d36a5d0b46c54fa"/>

<step operation="flash" partition="system" filename="system.img_sparsechunk.8" MD5="d9a6ee2f9b1c31720fbccc6945168802"/>

<step operation="flash" partition="oem" filename="oem.img" MD5="c7e5ec2e2e8e9ba58402b6243f721017"/>

<step operation="erase" partition="DDR"/>

<step var="fb_mode_clear" operation="oem"/>

</steps>

</flashing>

======================================

your flashing batch file should look like this:

fastboot flash partition gpt.bin

Fastboot flash bootloader bootloader.img

Fastboot flash modem NON-HLOS.bin

Fastboot flash fsg fsg.mbn

Fastboot erase modemst1

Fastboot erase modemst2

Fastboot flash dsp adspso.bin

Fastboot flash logo logo.bin

Fastboot flash boot boot.img

Fastboot flash recovery recovery.img

Fastboot flash system system.img_sparsechunk.0

Fastboot flash system system.img_sparsechunk.1

Fastboot flash system system.img_sparsechunk.2

Fastboot flash system system.img_sparsechunk.3

Fastboot flash system system.img_sparsechunk.4

Fastboot flash system system.img_sparsechunk.5

Fastboot flash system system.img_sparsechunk.6

Fastboot flash system system.img_sparsechunk.7

Fastboot flash system system.img_sparsechunk.8

Fastboot flash oem oem.img

Fastboot erase cache

Fastboot erase userdata

Fastboot erase DDR

Fastboot reboot

hope that helps