Within a script file, there is no need for the "-cmd" before the command name. Comment lines in script files begin with a number sign (#).
# This is a sample script file
setlog d:\log.txt
open d:\rhapsody\samples\Dishwasher dishwasher.rpy
generate EXE gui
save
make
rhapsody -f script.txt