[KARAF-3289] Add a while loop command