toggle – toggle a command

Call this to “switch on and off” an executable, this is, call it, if it does not yet run, or kill it, if it does.

I wrote this to switch on and off a virtual onscreen keyboard with the press of a button, for the software itself does not have this feature.