Do you think that the kingdom mentioned in Daniel 2:44 relates to whether or not people follow the commandments?
It is more whether they have done the will of The Father who is in heaven. In Matthew 7:22, Jesus tells us that many who have done good in His name will be refused because they did not do the will of The Father who is in heaven.
Many people misuse commandments and actually are working against Him while believing that they are keeping the commandments. This is the danger of legalism: that one has learned how live such that their peers cannot use the commands of the law to condemn them (Romans 4:4), but has not come to have His law written on their heart so that they may be approved by God through obedience (Romans 4:5, Romans 6:16, Matthew 7:13). In such cases, The Holy Spirit still condemns that person when He speaks through our words, yet that one has acquired a belief that satisfies them so they will not receive His judgement (eg Jeremiah 19:15).
This is why in Hebrews 3:12-15 we are warned that if we have accepted His judgement and come into repentance (that is what Christians do), then we must remain repentant and obedient to His voice until the end otherwise we become obstinate and we are cut off from Christ because of our stubbornness and refusal to obey (John 15:1-2). This actually happens every time that a person chooses to disregard truth, they become hardened in their heart against the truth and then having gained confidence to oppose that truth, is trapped in their sin of pride, to keep resisting call of The Holy Spirit to repentance.
Some of my Christian friends think that Exodus 20:7 began as a Bronze Age business code.
“You shall not misuse the name of the Lord your God, for the Lord will not hold anyone guiltless who misuses his name.
Genesis mentions human interaction between what is now Turkey, Egypt, and the Persian Gulf. People must have traded things like copper, frankincense, gold, linen, myrrh, salt, silver, and slaves. Trade required contracts, and people must have sworn oaths to abide by the contracts. Exodus 20:7 might have began as a prohibition of false oaths.
If you read Exodus 19, you will see that this is not how it came about. The Jewish people had been wandering the wilderness after having escaped Egypt, and God was giving instructions for how they must live to distinguish themselves as a holy people.
It is not a small coincidence that when Jesus gave the perfect model of prayer, He instructed that our first request should be "let your name be sanctified/revered/glorified/hallowed in all the earth". He also stated in Matthew 6:33 that our first priority should be to vindicate God's name from those who have misused it. In John 12:28, Jesus again shows that the glorification/sanctification/vindication of God's name is the first place in His heart. The voice from heaven in that verse shows prophecy spoken by the power of God (not by human words), that He will glorify His name again.
There is a depth of meaning in the commandment Exodus 20:7 - to take His name in vain (as vanity), is to take for the pride of one's appearance. There are many people who will qualify their opinions by God's name, claiming to have authority because they were officially ordained or baptised. The ones who do this wrongly (meaning that they do not have God's approval - they are using His name for a wrong purpose and deceitfully), are those whom Jesus will say in judgement (Matthew 7:21) "I never knew you, depart from me, you workers of iniquity".
Again, to claim a right to salvation by the keeping of law where one does not personally consult God in order that they may truly carry out His desire (compared to doing their own desire in His name), that is one who is taking His name for their own pride of appearance - vanity/misuse. A holy people, a kingdom of righteousness, does not do that.