There are rather simple ways to create a TXT file in a folder, such as
tell application "Finder" to make new file at (the target of the front window) as alias
used with an Automator Quick Action for example.
(How to Create a Text File in a Folder on Mac
https://osxdaily.com/2022/01/10/how-to-create-a-text-file-in-folder-on-mac/)
But mostly I use the RTF and with TextSoap.
How create a new RTF file in an open folder with TextSoap?
/
with best regards,
Omar KN, Stockholm, Sweden
textutil -convert rtf /PATH/TO/YOUR/text.txt
touch name.txt
remplace the 👆🏼 by 👇🏼
touch name.rtf