If they're just emulated beings, the answer is simple, just seize control of the emulation. Hijacking magic is probably tricky but not necessarily impossible.
It's foolish to say "just because they're emulated they're dolls". Someone who acts, thinks, and can decide like a person is a person.