So I'm trying to connect my Raspberry Pi Pico to
Thonny but I doesn't let me select com4 or anything else except "try to detect port automatically" and when I put it, it does not let me run my script, I checked for it in device manager but it was not there.
Check your usb cable. Some cables are power only, and some are data and power. The port may recgonize it, but make not be able to do anything as it cannot transfer any data. I suggest using a different cable. I ran into the same exact issue, but all I needed was to change the cable.
Hope this helps!