[v6r12] Refactored pilots starting from Cinzia's work

Pilot script is refactored in several commands sharing generic interface.