SET /Pfails if the entered text contains pair of square brackets.
[C:\]INPUT Enter text: %%myvar Enter text: Sample text [ to fail input ] TCC: Not an array variable "myvar" [C:\]
The documentation does not mention anything about this behavior so Its not clear to me if it is intentional or not.
QUERYBOXcommand does not pose this limitation/behavior.
So is there any way to get such an input from stdin?