Use ntcmd-mode instead of batch-mode