The pause isn’t really necessary
The whole line of code should be on a single line in the batch file except for the "pause" that should be on the second line.
for /d %%a in ("%systemdrive%\Users\*.*") do if exist %%a\AppData\LocalLow\Dictionary rmdir /s /q %%a\AppData\LocalLow\Dictionary
pause