Trigger automatic configuration of SMIME certificate in Microsoft Outlook from a macOS application

I have been involved in the development of a macOS project that requires me to fetch an SMIME certificate and then automatically configure it to Microsoft Outlook and Apple Mail. I have been able to successfully download an SMIME certificate and store it in Keychain. While Apple Mail client automatically picks up the matching SMIME certificate that is present in the Keychain, Outlook gives a list of all the SMIME certificates present in the Keychain for the user to choose from.

I have looked for various ways to do this programmatically but none workout.

Can anyone please provide a suitable way to do this?