Hi,
PowerShell Sleep (Start-Sleep) would be instances when you want to delay your script for some time (rather than sleep computer) before you proceed to the next line. So it often following after a script command.
Did you run other script before execute Start-Sleep?
Make sure you have a good understanding about start-sleep, or we could create a new thread for PowerShell or Script to verify if it is correct.
Scripting forum
Microsoft PowerShell subforum
For making sure if trigger "stop task if it runs long than" works well, we could configure other application such as open notepad with command line as task and stop it in 4 seconds. After than check task execute history to make sure it runs successfully.
Bests,