This is a companion discussion topic for the original entry at https://blog.ironmansoftware.com/using-powershell-7-in-the-windows-powershell-ise/
This is a great trick.
Interestingly, any attempts to suppress the ANSI encodings seem to fail. Neither environment variable NO_COLOR or setting $PSStyle.OutputRendering to PlainText works. The rendering setting is accepted but it is not honored.
Honestly, I’ve seen this issue myself. I thought it was just related to PSU but those settings don’t seem to take effect no matter what I do.