Here are the basics of creating a Bookmark via AppleScript…
tell application id "DNtp"
set urlName to "DEVONtech"
set urlURL to "https://www.devontechnologies.com"
create record with {name:urlName, URL:urlURL, type:bookmark} in incoming group
end tell
As far as processing multiple entities in the text file, yes it’s possible but it’s also highly dependent on the structure, and uniformity of data, in that file. A screencap or example would be helpful.
It’s good to see you learning some AppleScript too!