This is very similar, almost word for word, to Mark, chapter 1:27. Luke said, that amazement or astonishment came over all of them (καὶ ἐγένετο θάμβος ἐπὶ πάντας). This was a common reaction that people had to the activities of Jesus. The people were saying or speaking to one another (καὶ συνελάλουν πρὸς ἀλλήλους λέγοντες). What is this new teaching with authority (Τίς ὁ λόγος οὗτος, ὅτι ἐν ἐξουσίᾳ)? Thus, he commands with power even the unclean spirits (καὶ δυνάμει ἐπιτάσσει τοῖς ἀκαθάρτοις πνεύμασιν), so that they come out of that person (καὶ ἐξέρχονται). Jesus seemed to have some special spiritual powers that no one else had ever seen.
This is somewhat similar to earlier in Mark, chapter 1:23, when Jesus made the unclean spirit leave the possessed man. Jesus commanded even the unclean spirits, so that they listened or obeyed him. He seemed to have some special spiritual powers that no one else had ever seen. Here Mark noted that these evil unclean spirits (καὶ τὰ πνεύματα τὰ ἀκάθαρτα) fell down before Jesus or worshipped him (προσέπιπτον αὐτῷ), whenever they saw him (ὅταν αὐτὸν ἐθεώρουν). They cried out or shouted out to Jesus (καὶ ἔκραζον λέγοντα), that he was the Son of God (ὅτι Σὺ εἶ ὁ Υἱὸς τοῦ Θεοῦ), when no one else recognized this. This unclean spirit world was alive and active in first century Israelite culture.
Finally, Daniel came in to see the king. As with his companions, King Nebuchadnezzar had given Daniel a Babylonian name, Belteshazzar, based on the name of his Babylonian god, Bel. The king realized that Daniel, like Joseph with the Egyptian Pharaoh, had special spiritual powers. After all, in chapter 2, Daniel knew and interpreted his dream. The king called Daniel the chief of the magicians. He thought that no mystery would be too difficult for Daniel, because of the special divine powers that he had. Thus, the king was not afraid to tell Daniel, or Belteshazzar, his dream or ask for an interpretation.