Use the PipeOut parameter here instead of shell. It's needed when you're concatenating input/outputs

Eg. 
    as7 redeploy .. | grep xxx