Markdown card : add a simple entry via script

Found this one thread, for sumppumplog…seems to cover what you want to store data in a file, you can then read the file back into the HA / markdown

Save state to text file - Home Assistant Community