Hi Shobhit,
Exporting attributes along with Alembic from Maya should automatically export along any attribute name that matches. This can be done both through the Alembic Export Options through "attribute" or "attribute prefixes" (make sure to add them in that interface, they should end up in the list). The same can be done in the command using scripting using the flags
Or
These should be passed along to the AbcExport's -job string. Note that these support multiple values, and can be added to the job string like so in Python:
maya.cmds.AbcExport(j="-attrPrefix firstPrefix -attrPrefix secondPrefix -file /path/to/output.abc")
I haven't run this example snippet, but it should be more or less along these lines. Nevertheless consider it pseudocode. :) The concept is the same in MEL, pass them along with the job argument.
The exporter should automatically include the attributes, even if it's on any of the children nodes if I'm not mistaken.