Automation Anywhere has various options through which you can integrate make call to MS cognitive service depending upon your requirement.
method that strike me from the top of my head is calling a 'REST' service to ms cognitive services as automation anywhere supports making REST service call.