You can execute Optimizer silently, applying tweaks according to a configuration file.
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/conf/w7.conf
https://github.com/hellzerg/optimizer/blob/master/conf/w8.conf
https://github.com/hellzerg/optimizer/blob/master/conf/w10.conf