Print to console/command prompt
<p>I want to write text to console/Windows command prompt in AutoIt. I made a test script as shown below:</p>

<pre><code>Func Test()
   ConsoleWrite("Hello")
EndFunc

Test()
</code></pre>

<p>I saved the script as <code>test.au3</code>. When I run it, it does not print to console. I checked <a href="https://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm" rel="nofollow noreferrer"><code>ConsoleWrite()</code></a>; it should print to DOS console if it the script is compiled as a console application.</p>

<p>I compiled the script using Aut2Exe. It still does not print to console. How do I write to console in AutoIt?</p>