Execute WIndows commands in apache NIFI

  apache, apache-nifi, cmd, executeprocesstask, windows

I have some issues in executing cmd commands in apache nifi.
I have used the processor ExecuteProcess to execute my cmd command but It throws an error.

Can anyone help me to execute cmd windows commands in apache nifi using ExecuteProcess processor.

Thanks in advance.

Source: StackOverflow