Command executor procedure for all types of command based scripts.