Download the configuration file based on your Windows version and edit it accordingly.
Then, execute it like this: optimizer.exe /w10.conf
https://github.com/hellzerg/optimizer/blob/master/confs/win7.conf
https://github.com/hellzerg/optimizer/blob/master/confs/win8.conf
https://github.com/hellzerg/optimizer/blob/master/confs/win10.conf
https://github.com/hellzerg/optimizer/blob/master/confs/win11.conf
optimizer.exe /unsafe
optimizer.exe /reset