Windows 11 has changed the Visual Studio "Developer Command Prompt for VS 20xx" (cmd.exe, "DOS box") to behave like the terminal and warn if you attempt to paste in multiple lines of commands:
"Warning: you are about to paste text that contains multiple lines..."
This answer has instructions to stop this in terminal, is there an equivalent for the developer prompt? - How do I get Windows Terminal to stop asking me every time I paste something into the terminal?