Invite external commands into your grunt process with three tasks run, wait and stop.