如下:
$monitor = Get-CimInstance -Namespace root/WMI -ClassName WmiMonitorBrightnessMethods
Invoke-CimMethod -InputObject $monitor -MethodName wmisetBrightness -Arguments @{Timeout= '10'; Brightness='25'}
参考 https://learn.microsoft.com/zh-cn/powershell/module/cimcmdlets/invoke-cimmethod?view=powershell-7.2