Let me first say to pray "in the name of Jesus" is NOT
a blanket promise to answer just ANY prayer!
The context of the statement is that the apostles
(and, yes, Christians too) would be given that which they
asked in the NAME of Jesus.
To ask in the name of Jesus is to ask in the WILL of Jesus,
and for HIS glory.
It is to ask as HE would!

John 14:13-14
And whatsoever ye shall ask in my name, that will I do,
that the Father may be glorified in the Son.
14 If ye shall ask any thing in my name, I will do it.

LIGHT from the WORD.

Sometimes, as a pastor, I'm asked to pray in a public setting.
And, sometimes, it is stated: "We're just asking for a generic prayer."
Generic being a term for leaving Jesus OUT of it.

Most often, in that public type setting, I will end my prayer with
"in the name of MY Lord and Savior, Jesus Christ."

It would be improper to say "OUR Lord and Savior."
Because, to some present, He is not Lord.

But I will not deny or hide my submission to Him as LORD.
Any strength, truth, kindness or hope I have is BECAUSE of Jesus!

Always ask in GENUINE faith. (See James 1:6)
Always ask "according to His will".(See 1John 5:14-15)

And you shall HAVE what you ask!

Love ya!
Bro. Bruce