Measurement applications in optical fields require arbitrary spectro-temporal pulse shaping. However, conventional pulse-shaping algorithms are limited to controlling only the shape of the temporal intensity waveform. To overcome this limitation, we introduce the concept of short-time Fourier transformation into the conventional iterative Fourier transform algorithm, enabling it to introduce spectro-temporal constraints using a spectrogram image as a target. We numerically demonstrate that the proposed algorithm can find an appropriate spectral phase modulation pattern to realize arbitrarily controlled spectro-temporal pulse waveforms by testing the algorithm with different spectro-temporal multi-pulse waveforms. The algorithm benefits from reducing computational costs for generating spectro-temporal waveforms.