The shell command ignores anything else on the gnuplot command line. If instead you want to pass a command string to a shell for immediate execution, use the system function or the shortcut !. See system (p. ).
Examples:
shell system "print previous_plot.ps" ! print previous_plot.ps current_time = system("date")