'converting CMD command to powershell script

please who can help me with a POWERSHELL SCRIPT that can turn on registry key and change the value of DWORD ? or how i can convert a cmd command to powershell script



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source