As others have pointed out it is realistically not possible to assert with complete confidence whether the "Ten Commandments" were inspired by the "Book of Dead".
However, there is a reasonable historical background behind this kind of idea - it's a clash between historians and religious institutes on Moses.
There are two streams of thoughts behind this:
Moses was an Egyptian who advocated for a new monotheistic Egyptian religion against the prevailing polytheistic Egyptian religion (from which certain ideas would be retained, and others discarded).
Moses was a Hebrew who refined and advocated for a non-Egyptian monotheistic religion among his people that (in the fine tradition of the Church) appropriated religious aspects from older pagan Egyptian religions too.
In both cases, it is not hard to suppose that Moses (as an Egyptian priest or someone high-born with a knowledge of Egyptian religion) would know about the Book of Dead and may have drawn inspiration from it for the "Ten Commandments" he would later preach about as part of his "new religion". The core idea behind this is the argument by some historians that most of the ideas for the new Egyptian religion (or anti-Egyptian religion which evolved to Judaism), were sourced from older Egyptian religions.
Some examples will illustrate this better:
- '4 Completely Different Versions of the Story of Moses' cites two sources that claim Moses was an Egyptian:
Moses, according to Manetho, was an Egyptian priest named Osarsiph who tried to take over Egypt. The pharaoh had quarantined everyone with leprosy into a city called Avaris, and Osarsiph used them to stage a revolt. He made himself the ruler of the lepers, changed his named to Moses, and turned them against the pharaoh ... According to the Greek historian Strabo, Moses wasn’t a miracle worker and he didn’t speak to God. He was just a philosopher who sat down, thought about it, and decided that monotheism made the most sense. Moses, at the time, was the ruler of Lower Egypt, but he was “dissatisfied with the established institutions” in his own country.
- 'In Egyptian God, Amon(amen) the Invisible Creative Power - Hidden From View: Akhnaton, Moses and the Origins of Monotheism' a reasonable discourse is offered on the origin of the word 'Amen' that is prevalent in Judaeo-Christian religions and its link with Egypt's ancient religion:
Per Ankh put it his way: "Yet another hint of an Egyptian influence in Christianity is the fact that even today, we still end prayers with the Word "Amen". Amen-Ra was the Chief God of the Egyptians. The Church's main tool for the conversion of the "pagans" was always the appropriation of the local religion's most Holy Days and Rituals ... According to Sir Lawrence Gardner in The Genesis of the Grail Kings": "The Israelites exiles from Egypt knew that Jehovah was not the same as the Egyptian God Aten, and so they presumed he must be the equivalent of the great State-god of Egypt to all prayers thereafter, and the name of that Egyptian God was "Amen". To this day, the name Amen is still recited at the end of prayers in both Jewish and Christian religions."
- In his book, Moses and Monotheism, Sigmund Freud argued that the Jewish religion traces its roots to Egypt. He cites the practice of circumcision by Egyptians to support his argument:
Freud starts his hypothesis by claiming that Moses was an Egyptian and not a Hebrew ... Freud then moves on to the subject of circumcision, in Judaism the symbol of God’s covenant with Abraham. We know from archaeological evidence that circumcision was a tradition practised by the ancient Egyptians. It would seem strange therefore that the Hebrews would adopt, as a symbol of their specialness, a practice in common with the most powerful nation on Earth at the time. Rather, Freud postulates, it was a tradition that started as a reminder of the Egyptian origins of Moses’ followers.
- The story of 'The Golden Lotus' is an ancient Egyptian mythology that describes the parting of the Nile river by a magician, similar to the tale of the Red Sea parting by Moses.
(To be clear, my answer is just explaining the origins of such meme and why some people believe it).