CCleaner v2.10.618, or newer.
Create a new shortcut with this in it (or the path where you have CCleaner installed):
"C:\Program Files\CCleaner\CCleaner.exe" /AUTO /SHUTDOWN
What It Does:
1. Allows CCleaner to automatically clean your already user pre-selected items in the Cleaner section.
2. Automatically shutdown your PC.
There's no countdown timer, and it will shut down your PC immediately after CCleaner finishes.
Q: Does this also run the registry cleaner?
A: No it doesn't. There's no parameter to allow for automatic registry cleaning.
To learn of other ways you can use CCleaner command-line parameters view the Piriform Documentation: CCleaner command line parameters
If you need an icon to help distinguish it from the regular CCleaner icon, download the attached zip archive "CCleaner_Auto_Shutdown_Icon.zip" listed below.
The icon is in four standard Windows sizes with 32-bit True color and 8-bit 256 color:
48x48, 32x32, 24x24, 16x16
If you aren't a registered Piriform forum member you can download the icon from:
The download listed below is from the Piriform Forums, and requires membership with the Piriform Forums, and you must be logged into your member account.