I'm not an expert, and especially not in tcsh, but I see two things that look suspicious:
- The regurgitated command has "imagery_stim_times.*.1D" in it, which probably should have been expanded by then. Do those files exist?
- "$: Command not found." suggests you have a line that starts with "$", and indeed, I see "|$" in your command. I think that should be "|&".
HTH,
ijs