while ($true) { Write-Output "Starting VoiceBot" Start-Process -FilePath 'D:\VoiceBot\VoiceBot.exe' Start-Sleep 900 Write-Output "Stopping VoiceBot" Stop-Process -Name 'voicebot' Start-Sleep 10 }