if $reset_to$ = "high_performance" Set $reset_to_guid$ = $guid_high_performance$ endif if $reset_to$ = "powersave" Set $reset_to_guid$ = $guid_powersave$ endif if $reset_to$ = "balanced" Set $reset_to_guid$ = $guid_balanced$ endif Message "Reset to: " + $reset_to$ + " (" + $reset_to_guid$ + ")" WinBatch_reset_to Message "Delete: " + $name$ + " (" + $guid$ + ")" WinBatch_Delete [WinBatch_reset_to] powercfg -SETACTIVE "$reset_to_guid$" [WinBatch_Delete] powercfg -DELETE "$guid$"