The Wscript.Shell object, accessible from the Windows Script Host (either VBS or JS), has a method called "AppActivate", which, when passing the window title, will try to "activate" (which may bring it to the forefront if it is not minimized).
The following code snippet in VBScript worked on my machine:
Set WShell = CreateObject("WScript.Shell")
WShell.AppActivate "Command Prompt"
(Edited: I did not try this initially. Then I did)
source
share