Export gmic output into txt file in window cmd

I would like to export echo output from gmic into a text file. The standard approach of command > file.txt ends with 0 KB file. How should I do it?

Edit: I found the solution to my problem here. I had to increase screen buffer size to get every single echo output. But, feel free to answer as someone out there might be thinking of doing this.

In CLI, single > overwrites the redirection.Use >> to append.
In G’MIC, I think there are commands that help output text.