Ok, there is no direct automation of that feature. But that feature is a simpler version of Save as...optimized PDF.
Please explain "automation process". You earlier suggested that you wanted it to affect "any PDF copied to the system". I don't see how that can work, but perhaps you have an idea of how you see it working.
You can apply the PDF optimizer process to an entire folder without the use of any programming, using actions.