Windows 10. cmd, mobaxterm, ps, fluent, taby , vscode terminal etc. I have seen other similar questions and also looked at many possible solutions to this.
I should point out that other non-awscli commands outputted to a file work just fine. Only the AWScli commands show that error and do not allow me to send output to a file.
I can easily do something like c:\> dir > filename.txt and it works.
I have checked environment variables but have not found anything that I can see as a possible item to change that would solve the problem.
This is not a duplicate of the other two questions asked, but I think the root cause might be the same. No answer that would solve this problem has been found yet.