Hello Nikiwe,
To access PowerShell in your Windows Server sandbox, you simply need to launch it from the operating system itself. On the server, click Start and type “PowerShell,” then open Windows PowerShell or Windows PowerShell (Admin) if you need elevated rights. You can also press Win + R, type powershell, and hit Enter, which will bring up the console immediately. Once you’re in, you can run the command Install-WindowsFeature -Name AD-Domain-Services to install the AD DS role. After the role is installed, you’ll still need to promote the server to a domain controller, but the installation itself is handled entirely through that PowerShell session.
Is it helpful? If it is, please hit Accept Answer or give it a thump up! Very appreciate :)
Harry.