Cross-process photo stylization script

I have witten Corel script (Corel Photo-Paint X5) for cross-process photo stylization.
Example of its work (photo before and after):

If somebody can explain me how to rewrite it on VBA (+ work with Tone Curve and over adjust tools from VBA) I will be happy and share new VBA scripts. :)
I have read "Macro Programming Guide" but have not found answers to my questions.

CrossProcess.zip