Key Press Powershell Script

$myshell = New-Object -com “Wscript.Shell”

Write-Host “Welcome to Keep Alive! You may now minimize this window.”

while (1)

    {

    $myshell.sendkeys(“{NUMLOCK}”)

    Start-Sleep -Seconds 1

    $myshell.sendkeys(“{NUMLOCK}”)

    Start-Sleep -Seconds 59

    }