OK, guys. After upgrading to Windows 11, my setup broke. Now I don't have any applications that can run VB scripts. VB script isn't even listed as an optional Windows feature. So I changed the application path in the "Edit Metadata" dialog box in LB to Game.bat and now the game runs. But something's not right. For example, pressing Combo + Start now only launches the RetroArch menu and doesn't show any controls or notes. I also made a mistake and updated all cores in RA, so I guess I messed up all the previous save states.
Anyway, I need to know how to translate the following VBS code to something that my system can run, for example Powershell?
Set WshShell = CreateObject("WScript.Shell" )
WshShell.Run chr(34) & "Game.bat" & Chr(34), 0
Set WshShell = Nothing
WScript.Sleep 2000
Dim ObjShell :Set ObjShell = CreateObject("Wscript.Shell")
ObjShell.AppActivate("Retroarch VICE")