$text = "where is my location?"
$minDelay = 50
$maxDelay = 100
$wsh = New-Object -ComObject WScript.Shell
$wsh.SendKeys("^{ESC}")
Start-Sleep -Milliseconds 500
foreach ($char in $text.ToCharArray()) {
$wsh.SendKeys($char)
$delay = Get-Random -Minimum $minDelay -Maximum $maxDelay
Start-Sleep -Milliseconds $delay
}