Actually another way to do nimscript is to make a config.nims file with tasks in it.
eg:
In config.nims:
switch("hints", "off")
task hello, "say hello world":
echo "hello world"
In bash: $ nim hello
hello world