Text copied from teams pastes into Windows Powershell and Powershell 7 terminals upsidedown
When copying multi line text from a Teams chat or conversation, when pasting it into either Windows Powershell 5.1 terminal, or Powershell Core 7 terminal, it will paste in opposite line order.
in the terminal, and results in the code executing in reverse order.
This issue doesn't seem to be the case in windows terminal, Powershell ISE's console, or VScode's terminal. Additionally doesn't affect CMD either. Doesn't seem to happen pasting into text applications either.
I've only noticed this when copying things from Teams, no other application. Easily reproducible by typing a multi line message with Shift+Enter between lines and copy\pasting into a terminal as per screenshot. Affecting multiple users and devices.
Workaround is to paste it into a notepad window or other text editor, then copy the result into the terminal which does work, but it seems a bit odd.