An alternative to commanding unclean spirits out loud is to silently,(or out loud), beseech The Lord God/our Heavenly Father for freedom from them/their harassment, in Jesus' Name.
And whatsoever ye shall ask in my name, that will I do, that the Father may be glorified in the Son.
If ye shall ask any thing in my name, I will do it. <-----> John 14:13+14
...Verily, verily, I say unto you, Whatsoever ye shall ask the Father in my name, he will give it you.
Hitherto have ye asked nothing in my name: ask, and ye shall receive, that your joy may be full. <-----> John 16:23+24
One may first need to "confess/repent of their sins" to God to "clear" the way for "fellowship".
...If we walk in the light, as he is in the light, we have fellowship one with another, and the blood of Jesus Christ his Son cleanses us from all sin.
If we say that we have no sin, we deceive ourselves, and the truth is not in us.
If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness. <-----> 1st John 1:7-9
And we also may need to forgive/make right any "ought", we might have with/against any other.
And when ye stand praying, forgive, if ye have ought against any: that your Father also which is in heaven may forgive you your trespasses. <-----> Mark 11:25
Therefore if thou bring thy gift to the altar, and there remembers that thy brother hath ought against thee;
Leave there thy gift before the altar, and go thy way; first be reconciled to thy brother, and then come and offer thy gift. <-----> Matthew 5:23+24
And there may indeed come some practical instruction to keep/follow to secure the "gift", over the "long haul".
Howbeit when he, the Spirit of truth, is come, he will guide you into all truth: for he shall not speak of himself; but whatsoever he shall hear, that shall he speak: and he will show you things to come.
He shall glorify me: for he shall receive of mine, and shall shew it unto you. <-----> John 16:13+14
In this way, even the "buffeting" of Satan's messengers "works for our good", by distressing us to the point of seeking/calling upon The Lord more than before.
And lest I should be exalted above measure through the abundance of the revelations, there was given to me a thorn in the flesh, the messenger of Satan to buffet me, lest I should be exalted above measure.
For this thing I besought the Lord thrice, that it might depart from me.
And he said unto me, My grace is sufficient for thee: for my strength is made perfect in weakness. Most gladly therefore will I rather glory in my infirmities, that the power of Christ may rest upon me.
Therefore I take pleasure in infirmities, in reproaches, in necessities, in persecutions, in distresses for Christ's sake: for when I am weak, then am I strong. <-----> 2nd Corinthians 12:7-10
And we know that all things work together for good to them that love God, to them who are the called according to his purpose. <-----> Romans 8:28
Additionally, one may find good results, ( in light of these truths) by giving thanks to God, even for this trial, believing that it is part of a valuable lesson which will increase one's faith through an experience of increased dependence upon The Father, The Son, and The Spirit.
My brethren, count it all joy when ye fall into divers temptations;
Knowing this, that the trying of your faith works patience.
But let patience have her perfect work, that ye may be perfect and entire, wanting nothing. <-----> James 1:2-4
(See also Romans 5:1-5)
May The Lord Be Pleased to Bless & Keep !
wm