There are many ways possible to convert Thunderbird file into PST format but I suggest choosing a professional software KDETools Thunderbird to PST Converter. the software has many advanced features that user can easily use like batch conversion, message filtering, selective conversion etc. Tool support 20+ email client applications such as by Netscape, Eudora, Entourage, Opera, Spicebird, Thunderbird, etc.
Visit here: https://www.kdetools.com/thunderbird/
If you want to shift email from Thunderbird to Outlook. Then, you need software that easily exports Thunderbird [MBOX] email data to Outlook PST format. By the way, many third-party tools are available on the web. I highly recommend Shoviv MBOX in PST converter software which has an advanced algorithm to maintain folder hierarchy and also preserve your mail data.