I’m afraid this won’t help you much but in a cmd.com session the limit is 2047 characters. I believe in PowerShell it’s 8191. This is true on Windows 10 as well as previous versions.
Command prompt line string limitation - Windows Client | Microsoft Learn has some details and a workaround. I’m not sure it applies though.
If you are using VSCode, open the settings page and search for “terminal.integrated.shell.window”. I believe you can select cmd.com, the default, or choose PowerShell.
Knowing Windows, using PowerShell will introduce its own bucket of problems! ![]()
Cheers,
Norm.