Well, this is the answer to your problem.
When you Click Shutdown, Windows closes all running applications, so that means it won't be possible to run CCleaner.
With this, you can just run CCleaner, and automatically have Windows shut down after CCleaner has done its job!