Scripture is clear that what is intended for evil, God turns for good (example: Joseph, Genesis 50).
This is yet another example of that: The evil intended here is to conjure up a deceased spirit to bypass God's ways of guidance.
God allowed that to happen for the express purpose of judgment: Samuel pronounced that judgment, which was then promptly fulfilled the following day.
As for your specific Q about the conjuring powers of the witch...note (a) she was frightened/surprised that he actually showed...meaning she had no ongoing experience with this; and (b) humans -- or demons -- don't have the inherent power to bring people back from the dead (Luke 16:24-31; Heb. 9:27)
Scripture does record that He opened the mouth of Balaams donkey, and she spoke.
Yes...people can read this in Numbers 22
And, similarly, ELSIE posts on FR.