I am trying to get this PowerShell command script to run in a batch file and just cannot seem to get it to work. Thank you in advance. It works fine in PowerShell, I just need it to work in a bat.
$wshell = New-Object -ComObject WScript.Shell;
$wshell.AppActivate('APPNAME')
Sleep 1
$wshell.SendKeys('{ENTER}');