Convert cmd-if-shell to use prepare()