I tried the following script in Catalina and thought it worked since the note count was the same in both apps. However, it duplicates some of the notes to hit that number. I've tried adding single folders and multiple folders with same results. In the single folder selection, it takes the last notes I've modified in Notes and imports regardless of whether they existed in the folder I selected for import. Truthfully, why doesn't Evernote create a support article with a solution rather than having people discuss this for over 10 years (literally). Any feedback to why it won't work? Thank you.
tell application "Notes"
set theMessages to every note
repeat with thisMessage in theMessages
set myTitle to the name of thisMessage
set myText to the body of thisMessage
set myCreateDate to the creation date of thisMessage
set myModDate to the modification date of thisMessage
set thisItem to thisMessage
set myAccount to null
set myFolder to null
repeat
set thisContainer to the container of thisItem
if (the class of thisContainer) is folder then
set myFolder to name of thisContainer
else if (the class of thisContainer) is account then
set myAccount to name of thisContainer
end if
if myFolder is not null and myAccount is not null then
exit repeat
else
set thisItem to thisContainer
end if
end repeat
tell application "Evernote"
set myNote to create note with text myTitle title myTitle notebook myFolder tags myAccount
set the HTML content of myNote to myText
set the creation date of myNote to myCreateDate
set the modification date of myNote to myCreateDate
end tell
end repeat
end tell