I don't know re: handwriting so only barely relevant but here is a new contender for a CLI "OCR Tool using Apple's Vision Framework API": https://github.com/riddleling/macocr which I found while searching for this recent discussion:
My iPhone 8 Refuses to Die: Now It's a Solar-Powered Vision OCR Server