Code to toggle a program
Bash+common Linux utilities, 12 or 16 bytes
pkill &quot;$1&quot;||&quot;$@&quot;

If we can assume no whitespace in the program name and arg, then we can drop the quotes for a score of 12:
pkill $1||$@