If the Bible is not commissioned by Jesus, then why did the Catholic church write it?
If we’re supposed to listen to the (Catholic) church, then why did the Holy Spirit direct men to write Scripture?
I don't see any conflict or contradiction.
The Holy Spirit indwells the Church, "the pillar and foundation of truth," and "the body of Christ." Members of the body of Christ wrote the Scriptures, inspired by the Holy Spirit. The Church then formally recognized the inspired writings.
Many spurious "gospels" existed in the first two or three centuries. The Church infallibly determined which writings were inspired, and which were not.
DEI VERBUM
CHAPTER III
SACRED SCRIPTURE, ITS INSPIRATION AND DIVINE INTERPRETATION11. Those divinely revealed realities which are contained and presented in Sacred Scripture have been committed to writing under the inspiration of the Holy Spirit. For holy mother Church, relying on the belief of the Apostles (see John 20:31; 2 Tim. 3:16; 2 Peter 1:19-20, 3:15-16), holds that the books of both the Old and New Testaments in their entirety, with all their parts, are sacred and canonical because written under the inspiration of the Holy Spirit, they have God as their author and have been handed on as such to the Church herself.(1) In composing the sacred books, God chose men and while employed by Him (2) they made use of their powers and abilities, so that with Him acting in them and through them, (3) they, as true authors, consigned to writing everything and only those things which He wanted. (4)