I am using Windows 11 x64.
Here is a script that shows the issue (at least for me).
No output will be printed. Momentary terminal window flashes, then closes.
' File DupVarBug.tbasicc
' OS: Windows 11 64 bit
'---Load Console Module
Uses "Console"
Dim Status as Integer
Dim Status As Integer
Status = 1
Printl Status
'---Wait for a key press
WaitKey
created another simple console script, same problem.
' File: Hello.tbasicc
'---Load Console Module
Uses "Console"
Dim Status as Integer
Dim Status As Integer
'---Print the magic words
'PrintL "Hello World from ThinBASIC!"
'PrintL
'PrintL "Press a key to end program"
Printl "Hello"
'---Wait for a key press
WaitKey