Here's another one in the New Testament; the best picture of Jesus as Captain of the host is vividly portrayed in Revelation 19: 11-15:
And I saw heaven opened, and behold a white horse; and he that sat upon him [was] called Faithful and True, and in righteousness he doth judge and make war.
Did you know since Christ's ascension till His coming again is considered the Church dispensation period, a different period than what the OT was.
Back to the Captain of the Lord of Host; many theologians and believers believe this to be one of many pre-incarnate appearances of Christ. In this instance, He came to tell Joshua that He is fighting for Israel against Jericho with his armies.
Did you ever read that there is war in heaven (the second heaven); that Michael the Arch angel fights for Israel?
There is a means for War! The scriptures has a lot to say about it.