I want to run a specific command for a few seconds after that the command need to stopped automatically.