I really don't know what's wrong, I'm a complete PS noob. I would really recommend you to use something like ClassicThemeTray. If you don't want it on your system tray all the time you can use the command line options in a batch script. It's so much smaller and more efficient than the PS6 route. It's actually safer then trusting random PS6 commands (Those can literally destroy your PC). Yes Windows Defender will be a douchebag but at least it works. If you don't trust it, just look at the source code!
2. Create a .bat file with either of these scripts:
@echo off FOR /F "delims=^T" %%G IN ('Handle Theme') do set output=%%G FOR /F "tokens=6" %%G IN ('echo %output%') DO set handleid=%%G FOR /F "tokens=3" %%G IN ('echo %output%') DO set pid=%%G echo %handleid% echo %pid% Handle -c %handleid% -p %pid% -y or
@ECHO OFF SETLOCAL ENABLEEXTENSIONS FOR /F "tokens=3,6 delims=: " %%A IN ('Handle Theme') DO ( ECHO handleid=%%B ECHO Pid=%%A Handle -c %%B -p %%A -y ) or
@FOR /F "tokens=3,6 delims=: " %%A IN ('Handle Theme') DO Handle -c %%B -p %%A -y 3. Put it into the same directory as the utility.