Generate commande in external file sh