An easiest way to install APKs on Windows 11, just drag the .apk and drop it on this .py
The following instructions will allow you to use this script on your machine.
You will need the following tools.
Also, you must change the path of the ADB drivers inside the quotes, don't delete the r.
os.chdir(r'C:\Users\sergi\Documents\Android\ADB\platform-tools')
Open the Windows Subsystem for Android and launch the files options as shown on Picture 1 or set the Subsystem resources to Continuous, as shown on Picture 2
For installing the .apk just drag it and drop it on the main.py