Fun with Microsoft Agent and PowerShell

Show Merlin:

$agent = new-object -com Agent.Control.2
$agent.Connected = 1
$agent.Characters.Load("Merlin")
$merlin = $agent.Characters.Character("Merlin")
$merlin.Show()

List animations:

$merlin.AnimationNames

 

Activate animation:

$merlin.Play("Congratulate")

 

Have Merlin tell when process was started:

Get-Process | select -First 10 | foreach {$merlin.Speak($_.ProcessName + " was started " + $_.StartTime) | out-null; Start-Sleep 5 }

 

Microsoft Agent is being deprecated and will not be included in future versions of the Windows operating system.