I´m trying to make a script for NWCOUT-exports but can´t get it to work??

In the script the only text should be NWCOUT followd by two ENTER, or?? when i write it in a open drawing it works to write Nwcout and strike ENTER two times, but not when im writeing it in a scriptfile....... Please help me