Launch the given command as the child process of a script, wait for it to terminate and also perform the following signal handling when a signal is sent,