Don't use powershell, use cmd. Download the fastboot version rom, 12.5.1, boot into fastboot, use the automatic .bat and let it install itself. Boot the phone, set a pin or pattern so u can decrypt data in twrp, boot into fastboot and fastboot boot the twrp img. After that, update to the latest...