function say($msg) { $speaker = new-object -com Sapi.SpVoice $speaker.Speak($msg, 1) }