What are the differences and similarities between prayer and magic?

I know prayer is regarded as a request and magic is regarded as a command, but I ask because in theory the command/request dichotomy stands up, but in practice I don’t see commands and requests to be mutually exclusive. Couldn’t both prayer and magic be commanding in nature as well as an expression of will, and couldn’t both prayer and magic also be requests which include a strong sense of humility?

I just read something about that. It says "spellwork has its power from the harmony or the wizard with the Logos or creative energy of God" So in this sense it would seem that magic and prayer are similar.

However, in practice there are two kinds of magic. (I am not an expert on this.)
Invocational magic is where you call down spirits and demons to do your bidding.
Incantational magic (the type in Harry Potter) involves the harmony with the powers of the universe, or God. The more in-touch you are with that power, or God the more power and better results that you will get from your spell. It is this type of magic that is somewhat like prayer. The Saints get better results become they have become one with God, their source.

From this we can see that both magic and prayer require that the person be in harmony with God, in harmony with love.