In other words: it's too fast to read or even see it, it ends before you can see it (or before the monitor was refreshed). So, yes, use waitkey()
print "test"
print "press any key to end this app"
waitkey()
end
print "test"
print "press any key to end this app"
waitkey()
end