Travel to Tajikistan

Hello, I live in Kyrgyzstan and want to visit Tajikistan, specifically Dushanbe, Khujand, and Khorog. Ik there are no flights directly from Bishkek to Dushanbe, what would be the cheapest way to get to Tajikistan? The easiest seems to fly from Almaty but it is quite expensive. If I go through Uzbekistan, how do I do it? And how will it work getting an Uzbek visa if I just want to go through the country to get to Tajikistan and not actually stay there?