is there alternate to gui based code ?

What do you mean by the Windows GUI?

Do you really mean the Arduino IDE?

If so, it is possible to call the Arduino IDE from the command line. I use a Python program to do that so I can compile and upload programs from the Geany editor.

...R