Apart from the Pentecostal church, shunning is practiced by the Amish, the Exclusive Brethren (Plymouth Brethren), Jehovah’s Witnesses and the Church of Scientology. However, Jehovah’s Witnesses say they are neither Protestant nor Catholic, and I doubt if Scientology is viewed as a Protestant denomination.
There are two issues here, shunning and disfellowshipping. It is possible to disfellowship (or excommunicate) someone from the church without shunning them. Indeed, the Bible gives grounds for putting the unrepentant wrongdoer out of the church.
I wrote to you in my letter not to associate with sexually immoral people — not at all meaning the people of this world who are immoral, or the greedy and swindlers, or idolaters. In that case you would have to leave this world. But now I am writing to you that you must not associate with anyone who claims to be a brother or sister but is sexually immoral or greedy, an idolater or slanderer, a drunkard or swindler. Do not even eat with such people. What business is it of mine to judge those outside the church? Are you not to judge those inside? God will judge those outside. “Expel the wicked person from among you” (1 Corinthians 5:9-13)
If your brother sins against you, go and rebuke him in private. If he listens to you, you have won your brother. But if he won’t listen, take one or two more with you, so that by the testimony of two or three witnesses every fact may be established. If he pays no attention to them, tell the church. But if he doesn’t pay attention even to the church, let him be like an unbeliever and a tax collector to you (Matthew 18:15-17).
Disfellowshipping is a term that refers to putting one out of the fellowship, or common group, due to some sin, moral lapse, or unfaithfulness. Such church discipline is to be removed from membership and should be applied to unrepentant sinners.
In Matthew 18 Jesus teaches that, if a person who claims to be a believer will not repent of specific sin after several confrontations, that person should be treated as an unbeliever. Paul also addresses church discipline: “I wrote to you in my letter not to associate with sexually immoral people—not at all meaning the people of this world who are immoral, or the greedy and swindlers, or idolaters. In that case you would have to leave this world. But now I am writing to you that you must not associate with anyone who claims to be a brother or sister but is sexually immoral or greedy, an idolater or slanderer, a drunkard or swindler. Do not even eat with such people. What business is it of mine to judge those outside the church? Are you not to judge those inside? God will judge those outside. Expel the wicked person from among you” (1 Corinthians 5:9–13). So, unrepentant sinners within the church are to be removed from the local body. However, Paul reminds the church in 2 Corinthians 2:7–8 to restore and forgive a repentant brother. The ultimate goal of excommunication or disfellowshipping is repentance and the restoration of fellowship. https://www.gotquestions.org/disfellowshipping.html
Shunning friends and family who have been disfellowshipped from a religious denomination is not biblical. Job was “blameless and upright, a man who fears God and shuns evil” (Job 1:8). Job confessed that “the fear of the Lord—that is wisdom, and to shun evil is understanding” (Job 28:28). The Bible advises us, “Do not be wise in your own eyes; fear the Lord and shun evil” (Proverbs 3:7–8). “A wise man fears the Lord and shuns evil” (Proverbs 14:16). Shunning evil is good, but to call a former associate “evil” because they disagreed with the teachings of the leadership and resigned or walked away is not biblical. It is a form of control and is the hallmark of a cult.
Scripturally, excluding a person from the church is preceded by admonition and counsel; it is only employed in cases of bona fide heresy, obdurate divisiveness, or blatant, unrepentant sin; and it is a last resort. After excommunication, the relationship between the former member and the church naturally changes, and the “shunning command”—not to eat with such a person—may come into play. However, the church still has the responsibility to pray for the one being disciplined and to extend forgiveness when repentance is evident. Shunning, as defined as a refusal to speak to someone or a total severing of all ties, goes beyond what the Bible advocates. https://www.gotquestions.org/Bible-shunning.html
Some churches twist Scripture to give more authority to the leadership and keep the members under their control. One example is the use of Hebrews 13:17 as a basis for demanding unquestioning loyalty and obedience to the leaders. Some religious groups view questioning the leaders as tantamount to questioning God. Some leaders claim to have divine authority and approval; thus, to disobey them is to disobey God. This is perhaps the most pernicious form of spiritual manipulation, and it has no place in a true church.
Victims of spiritual manipulation seldom realize what’s happening to them. Here are some indicators of a spiritually manipulative church:
Demands for obedience
Punishment (loss of privileges, shunning, or expulsion)
Emphasis on performance
Exclusivism (“we alone are right, and everybody else is wrong”)
Isolation (refusal to associate with anyone but spiritual brothers and sisters)
Humiliation of the "disobedient"
More related information here: https://www.gotquestions.org/spiritual-abuse.html
To conclude: It is biblical to put an unrepentant sinner out of the church. It is unbiblical to shun family members and former friends simply because the leadership of the church says you must. Let the Bible have the final word:
Do not turn away from your own flesh and blood (Isaiah 58:7).