I don’t know if there is evidence that Popes were involved in this, but even if they are, - if something is against Church teaching it is wrong even if the Pope is involved in it… infallibility only applies to what the Pope teaches ex cathedra, not to his actions!
I don’t know much about this but honestly it sounds like the occult or superstition to me. In the Church we never summon any spirits. We pray to God, Mary, Saints, Angels, but always with the intent of coming closer to God, - we should never pray to Angels without that intent. We must also never “summon” or “invoke” spirits and expect them to come to us, or seek any experiences - the Saints warn us of this, because this can easily invite the demonic. If we “summon” a spirit, an evil spirit can easily take that chance to disguise as an “angel of light” and deceive us. I pray to my Guardian Angel but I don’t expect to feel his presence, or see him, etc, I know that he hears what I say and that is enough… I ask him to guide me closer to God, to protect me, etc.
So I would recommend to stay away from ceremonial magic… if you want to go deeper into your spirituality, read the books by the Saints… real spirituality is growing in our love for God. This is what all our actions and prayers should be oriented towards. Not to “contact” any spirits. When we pray to Saints, etc, we don’t expect them to contact us: it is enough that they pray for us. If God wants them to contact us, that is fine. (and even then, we must discern). But never never should we seek this or seek experiences. This is very dangerous spiritually. (St Teresa of Avila says this and she had many genuine spiritual experiences). Please keep in mind that our spiritual life is not about what we experience… in the end, we will be judged by how much we loved God and neighbour, how much humility we have… but false experiences can really harm a soul, and be sinful, if they involve the occult. Seeking “hidden knowledge” is also of the occult. What you describe sounds like superstition to me. For example… why would all this detail, colours, words, etc, be so important and need to be so accurate, - when God looks at the heart? The only exception I can think of is liturgy, but it’s miles away from ceremonial or any magic, it doesn’t operate by magic but by the Holy Spirit and the intent of the priest is not to control spiritual realities but to offer worthy worship. If a priest were to make a mistake, and start the prayer over again, or accidently mispronounce something, that wouldn’t ruin the Mass. The Mass is a participation in heavenly worship. But in ceremonial magic, - everything seems to depend on detail externals which have nothing to do with Heaven, worship, prayer, or loving God… for example I don’t think anyone in Heaven would care if you used purple or blue candles while praying, or said something in a particular order… all this can distract from a healthy prayer life. I suggest leaving this magic and praying more instead. God looks at the heart when we pray. Maybe start with praying the Rosary
Also I see elements of the occult in ceremonial magic, and it has a resemblance to occult practices… which is against Church teaching. Another problem is the element of control… as in: if I do all these things right, the angels WOULD be invoked. Well we can’t control spiritual reality. We definitely can’t control angels. Demons can make it seem like we are controlling something, just to draw us in, - and thus we would sin through pride and a desire for power. In the spiritual life, we are the LEAST able to control anything… everything is up to God’s will… we just choose to either cooperate with Him, or not. We have free will. But no matter what we do, we can’t “make” an angel, a Saint, and of course God, respond to us. It’s more humble this way. The occult is based on pride… and think of the original source of pride: the devil.
God bless!