You could wrap your call to gnuplot
with a shell script:
#!/bin/sh
gnuplot <<EOF
set term svg
set out '$1'
plot '$2' with lp
set term wxt 0
set out
EOF
The shell would substitute $1
and $2
in the script with the first and second command line parameters.