I am able to build my baking pipeline with Cycles. Cycles is amazing. Thanks to everyone.
It has been a superb journey for me. I am a C# developer. Initially I thought of extending the CLI wrapper (from Rhino Engine). I could not do it. Finally decided to completely switch to C++ platform.
Learnt C++ and finally achieved. Thanks a lot to @jesterKing for his continuous support and encouragement.
The attached is the screenshot of the AO textures baked with my pipeline using Cycles.