Sir,
The poster was asking how to set the theme of the Edge browser with a Powershell script... not by going through Windows and clicking on things.
The likely purpose of him wanting to use Powershell to do this is so that he can automatic the process of setting up his desktop with his personalized settings so he does not have to waste time clicking things.
Could you please provide the Powershell script needed to set Dark theme Microsoft Edge?