Add-Type -AssemblyName System.speech $speak=New-Object System.Speech.Synthesis.SpeechSynthesizer $speak.SetOutputToWaveFile("d:\jaagup\powershell\heli2.wav") $speak.Speak('Tere') #$speak.Dispose() $speak.GetInstalledVoices().VoiceInfo [console]::beep(440, 500) $i = (New-Object -com "WMPlayer.OCX.7").cdromcollection.item(0) $i.eject() $eesnimi="Juku" if($eesnimi -eq "Juku"){ Write-Host "Tere" } if($eesnimi -eq "Juku" -or $eesnimi -eq "Kati"){ Write-Host "Tere" }