[Moto Z2 Force  Guides, News, & Discussion] tys0n:
No idea if it works with locked bl. I don't have "nash" myself.

This it the flashfile.xml:

<flashing>
<header>
<phone_model model="nash"/>
<software_version version="nash-user 9 PPX29.159-19 02844 release-keysM8998_50.71.02.95R"/>
<subsidy_lock_config MD5="d41d8cd98f00b204e9800998ecf8427e" name="slcf_rev_d_default_v1.0.nvm"/>
<regulatory_config SHA1="da39a3ee5e6b4b0d3255bfef95601890afd80709" name="regulatory_info_default.png"/>
<sparsing enabled="true" max-sparse-size="536870912"/>
<interfaces>
<interface name="AP"/>
</interfaces>
</header>
<steps interface="AP">
<step operation="getvar" var="max-sparse-size"/>
<step operation="oem" var="fb_mode_set"/>
<step MD5="68f8436d0070cf51b239eb3578fb6f87" filename="gpt.bin" operation="flash" partition="partition"/>
<step MD5="5ef82cf4f04fe4938b1dd0d37eb5a4ea" filename="bootloader.img" operation="flash" partition="bootloader"/>
<step MD5="ea0836957b8d3806853722b9fcef3fd1" filename="NON-HLOS.bin" operation="flash" partition="modem"/>
<step MD5="326104734b872732a74ff9f0ebf13929" filename="fsg.mbn" operation="flash" partition="fsg"/>
<step operation="erase" partition="modemst1"/>
<step operation="erase" partition="modemst2"/>
<step MD5="9d6dd2834c7232367c9b5d6e75b37937" filename="BTFM.bin" operation="flash" partition="bluetooth"/>
<step MD5="db44ea4140b226b4eae3fd38a87a806e" filename="adspso.bin" operation="flash" partition="dsp"/>
<step MD5="51db0539a31730ef1275243f74ca1bd8" filename="logo.bin" operation="flash" partition="logo"/>
<step MD5="dafa8846563cc09a001e64fbfcfe03d9" filename="boot.img" operation="flash" partition="boot"/>
<step MD5="97ac33bcdd819983bb53291253fe8d1a" filename="system.img_sparsechunk.0" operation="flash" partition="system"/>
<step MD5="14df3e851b691e07b4268c04514b47ed" filename="system.img_sparsechunk.1" operation="flash" partition="system"/>
<step MD5="75e40d7edf6e062f3cb3a0fdc1ee454b" filename="system.img_sparsechunk.2" operation="flash" partition="system"/>
<step MD5="5f63d47068e37a6223f98c6308e41b3f" filename="system.img_sparsechunk.3" operation="flash" partition="system"/>
<step MD5="86e277fc41f596a4e5174f001d4afde6" filename="system.img_sparsechunk.4" operation="flash" partition="system"/>
<step MD5="4196ed99d82ad7fc87f55a30c1d5582e" filename="system.img_sparsechunk.5" operation="flash" partition="system"/>
<step MD5="1f2e3b4fa31f466d03b87471249d0896" filename="system.img_sparsechunk.6" operation="flash" partition="system"/>
<step MD5="58200dc48b70e990a0a15f2c537f8942" filename="system_other.img" operation="flash" partition="system_b"/>
<step MD5="55aad038227bd2cd4cdc1b03547c2814" filename="oem.img" operation="flash" partition="oem"/>
<step operation="erase" partition="carrier"/>
<step operation="erase" partition="cache"/>
<step operation="erase" partition="userdata"/>
<step operation="erase" partition="ddr"/>
<step operation="oem" var="fb_mode_clear"/>
</steps>
</flashing>

So I guess the .bat file should be something like this:

fastboot oem fb_mode_set
fastboot getvar max-sparse-size
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 bluetooth BTFM.bin
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.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_b system_other.img
fastboot flash oem oem.img
fastboot erase carrier
fastboot erase cache
fastboot erase ddr
fastboot oem fb_mode_clear
fastboot -w
fastboot reboot-bootloader

Correct me if I'm wrong. As I said, I don't own nash myself. I got other motos tho and the .bat's I've made for them works fine so I think this should be correct .

I took an existing flashall.bat for nash and only did some changes to get the file names right for pie update, but I guess you can remove the "fastboot -w" if you wanna try update without wiping data.