Now start the installation of the TWRP on the smartphone with "install_TWRP.bat". The script tells you what to do and after a few seconds the device should boot directly into TWRP.
ATTENTION! If the device restarts again and again, then you must first perform a wipe (delete all data). To do this, boot into the normal recovery (volume up + power button) and select the first option, then the lower option and then the device should be reset.
Now you are in TWRP and everything is in Chinese. We first change it by clicking the second button from the bottom on the right (see photos), then on the globe and then on English.
In Android 12 / Miui 13 TWRP Versions, the injection is also needed sometimes. Please go to ADVANCED and click "Flash current TWRP". Sometimes this is needed. If you boot after the Miui installation and TWRP is not there, just use the script again and click on "Flash current TWRP". With this TWRP stay forever.
Only in Android 11 / Miui 12 -> Now we go back to the first page with the back button and click ADVANCED. This is a special feature on the Mi 11 Pro and Mi 11 Ultra because otherwise TWRP will not stay on the device. We would need to "inject" TWRP. Just click on "Onkey inject TWRP" here. Confirm everything and now TWRP will stay on the device forever.