@Sudheer KYou can use ExecuteProcess (doesn't allow any incoming connections) (or) ExecuteStreamCommand processors to trigger the shell script.
Create a shell script on NiFi cluster(all nodes of nifi cluster) ssh into the remote machine/server and trigger your Script.
For more info refer to this link.