Here is a very simple script that you can build from.
tell application "Notes"
tell account "iCloud"
set newNote to make new note at folder "Notes" with properties {name:"Test", body:"You can add text here"}
make new attachment at newNote with data theFile
show newNote
end tell
end tell
You’ll need to update the account, if not using iCloud and will need to update the folder within which you want to save these notes.
I hope this helps — jay