
\documentclass{article}
  \usepackage{pgffor}
  \pagestyle{empty}

\newcommand{\cmd}{-x-}

\begin{document}
  \foreach \n in {1,...,4}{\cmd{}}
\end{document}
