[Google Pixel 3 XL Guides, News, & Discussion] NathanTan:
Thanks a lot for the script. I have tried to unpack all in the same folder, copy and paste your script in the cmd, but the result is all the same. Even if I try to create a bat file and start it, same result. Command failed, need unlocking. Which I still cannot do. I tried both your original script, and also tried to rename the bootloader from bootloade* to the one I actually have in the folder, different faults but still not running it.

After running the script I try to boot in recovery but it says no valid operating system, cannot start, the only option it gives me is to turn off the phone.

Am I missing any steps?

This is the result after running your script:

C:\Google Pixel 3\XDA solution\Android P>fastboot reboot-bootloader
Rebooting into bootloader OKAY [ 0.045s]
Finished. Total time: 0.054s

C:\Google Pixel 3\XDA solution\Android P>sleep 5
'sleep' is not recognized as an internal or external command,
operable program or batch file.

C:\Google Pixel 3\XDA solution\Android P>fastboot flash bootloader_b bootloader-
blueline-b1c1-0.1-5191736.img
Sending 'bootloader_b' (8493 KB) FAILED (Write to device faile
d (Too many links))
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot reboot-bootloader
Rebooting into bootloader FAILED (Write to device faile
d (Too many links))
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>sleep 5
'sleep' is not recognized as an internal or external command,
operable program or batch file.

C:\Google Pixel 3\XDA solution\Android P>fastboot flash radio_a radio-blueline-g
845-00009-181130-b-5157073.img
Sending 'radio_a' (71132 KB) FAILED (Write to device faile
d (Too many links))
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot reboot-bootloader
< waiting for any device >
Rebooting into bootloader OKAY [ 0.046s]
Finished. Total time: 0.052s

C:\Google Pixel 3\XDA solution\Android P>sleep 5
'sleep' is not recognized as an internal or external command,
operable program or batch file.

C:\Google Pixel 3\XDA solution\Android P>fastboot flash radio_b radio-blueline-g
845-00009-181130-b-5157073.img
Sending 'radio_b' (71132 KB) FAILED (Write to device faile
d (Invalid argument))
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot reboot-bootloader
< waiting for any device >
Rebooting into bootloader OKAY [ 0.045s]
Finished. Total time: 0.052s

C:\Google Pixel 3\XDA solution\Android P>sleep 5
'sleep' is not recognized as an internal or external command,
operable program or batch file.

C:\Google Pixel 3\XDA solution\Android P>##Flashing Slot A
'##Flashing' is not recognized as an internal or external command,
operable program or batch file.

C:\Google Pixel 3\XDA solution\Android P>fastboot flash abl_a abl.img
Sending 'abl_a' (1024 KB) FAILED (Write to device faile
d (Too many links))
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash aop_a aop.img
Sending 'aop_a' (180 KB) FAILED (Write to device faile
d (Too many links))
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash boot_a boot.img
Sending 'boot_a' (65536 KB) FAILED (Write to device faile
d (Invalid argument))
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash cmnlib_a cmnlib.img
< waiting for any device >
Sending 'cmnlib_a' (368 KB) OKAY [ 0.117s]
Writing 'cmnlib_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash cmnlib64_a cmnlib64.img

Sending 'cmnlib64_a' (488 KB) OKAY [ 0.116s]
Writing 'cmnlib64_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash devcfg_a devcfg.img
Sending 'devcfg_a' (40 KB) OKAY [ 0.115s]
Writing 'devcfg_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash dtbo_a dtbo.img
Sending 'dtbo_a' (8192 KB) OKAY [ 0.285s]
Writing 'dtbo_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash hyp_a hyp.img
Sending 'hyp_a' (380 KB) OKAY [ 0.117s]
Writing 'hyp_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash keymaster_a keymaster.im
g
Sending 'keymaster_a' (212 KB) OKAY [ 0.116s]
Writing 'keymaster_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash modem_a modem.img
Sending 'modem_a' (71132 KB) OKAY [ 1.825s]
Writing 'modem_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash product_a product.img
Sending 'product_a' (200036 KB) OKAY [ 5.036s]
Writing 'product_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash qupfw_a qupfw.img
Sending 'qupfw_a' (64 KB) OKAY [ 0.115s]
Writing 'qupfw_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash tz_a tz.img
Sending 'tz_a' (2008 KB) OKAY [ 0.144s]
Writing 'tz_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash vbmeta_a vbmeta.img
Sending 'vbmeta_a' (4 KB) OKAY [ 0.116s]
Writing 'vbmeta_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash vendor_a vendor.img
Sending sparse 'vendor_a' 1/2 (262140 KB) OKAY [ 6.838s]
Writing 'vendor_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash xbl_a xbl.img
Sending 'xbl_a' (3568 KB) OKAY [ 0.186s]
Writing 'xbl_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash xbl_config_a xbl_config.
img
Sending 'xbl_config_a' (96 KB) OKAY [ 0.116s]
Writing 'xbl_config_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>echo "Flashing System A"
"Flashing System A"

C:\Google Pixel 3\XDA solution\Android P>fastboot flash system_a system.img
Sending sparse 'system_a' 1/9 (262140 KB) OKAY [ 6.730s]
Writing 'system_a' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>echo "Flashing System B"
"Flashing System B"

C:\Google Pixel 3\XDA solution\Android P>fastboot flash system_b system_other.im
g
Sending sparse 'system_b' 1/2 (262140 KB) OKAY [ 6.807s]
Writing 'system_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>##Flashing Slot B
'##Flashing' is not recognized as an internal or external command,
operable program or batch file.

C:\Google Pixel 3\XDA solution\Android P>fastboot --set-active=_b
Slot _b does not exist. supported slots are:
a
b

C:\Google Pixel 3\XDA solution\Android P>fastboot --set-active=b
Setting current slot to 'b' FAILED (remote: 'Fastboot com
mand (set_active:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash abl_b abl.img
Sending 'abl_b' (1024 KB) OKAY [ 0.126s]
Writing 'abl_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash aop_b aop.img
Sending 'aop_b' (180 KB) OKAY [ 0.115s]
Writing 'aop_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash boot_b boot.img
Sending 'boot_b' (65536 KB) OKAY [ 1.665s]
Writing 'boot_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash cmnlib_b cmnlib.img
Sending 'cmnlib_b' (368 KB) OKAY [ 0.115s]
Writing 'cmnlib_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash cmnlib64_b cmnlib64.img

Sending 'cmnlib64_b' (488 KB) OKAY [ 0.115s]
Writing 'cmnlib64_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash devcfg_b devcfg.img
Sending 'devcfg_b' (40 KB) OKAY [ 0.116s]
Writing 'devcfg_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash dtbo_b dtbo.img
Sending 'dtbo_b' (8192 KB) OKAY [ 0.285s]
Writing 'dtbo_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash hyp_b hyp.img
Sending 'hyp_b' (380 KB) OKAY [ 0.114s]
Writing 'hyp_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash keymaster_b keymaster.im
g
Sending 'keymaster_b' (212 KB) OKAY [ 0.115s]
Writing 'keymaster_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash modem_b modem.img
Sending 'modem_b' (71132 KB) OKAY [ 1.835s]
Writing 'modem_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash product_b product.img
Sending 'product_b' (200036 KB) OKAY [ 5.037s]
Writing 'product_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash qupfw_b qupfw.img
Sending 'qupfw_b' (64 KB) OKAY [ 0.116s]
Writing 'qupfw_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash tz_b tz.img
Sending 'tz_b' (2008 KB) OKAY [ 0.145s]
Writing 'tz_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash vbmeta_b vbmeta.img
Sending 'vbmeta_b' (4 KB) OKAY [ 0.115s]
Writing 'vbmeta_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash vendor_b vendor.img
Sending sparse 'vendor_b' 1/2 (262140 KB) OKAY [ 6.869s]
Writing 'vendor_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash xbl_b xbl.img
Sending 'xbl_b' (3568 KB) OKAY [ 0.186s]
Writing 'xbl_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>fastboot flash xbl_config_b xbl_config.
img
Sending 'xbl_config_b' (96 KB) OKAY [ 0.116s]
Writing 'xbl_config_b' FAILED (remote: 'Fastboot com
mand (flash:) is not allowed when locked')
fastboot: error: Command failed

C:\Google Pixel 3\XDA solution\Android P>