I\'m using Windows.UI.ViewManagement.UISettings to get system accent color but it seems this class does not have any method or property for light/dark mode. I f
Windows.UI.ViewManagement.UISettings
If you want to get the Value in PowerShell you can use the following code:
(New-Object Windows.UI.ViewManagement.UISettings).GetColorValue("background")