https://community.cisco.com/t5/unified-communications/exporting-phone-contacts-personal-directory-personal-address/td-p/2644488
You can export personal address book by opening CUCM CLI and type below this commands :
show tech table personaladdressbook csv
show tech table personalphonebook csv
and then "file get activelog FileName" to get the files.
Note: There is no way to add these entries via BAT.