This script demonstrates how to export contacts in the Default contact folder from Outlook Web App to a comma separated values (CSV) file.
Outlook Web App (OWA) allows you to import multiple contacts in a very simple way. However, it does not allow you to export contact. Therefore, in order to export contacts from the OWA and import in other mail clients, you must find a workaround.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery