Split "activate" and shell command adapter into two scripts