Functions/Set-ClevoPowerMode.ps1


function Set-ClevoPowerMode {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory)] [ValidateSet("Quiet", "Powersaving", "Performance", "Entertainment")] [string] $PowerMode
    )

    Start-Process $PSScriptRoot\..\resources\opencontrol\opencontrol.exe -ArgumentList "Power $PowerMode" -NoNewWindow -Wait

}