use filesystem instead of fs
do not modify manifest but copy command in a new array before execution