Hi I had the opposite problem, I need to minimize cmd so I did
Dim wsh As Object
Dim waitOnReturn As Boolean: waitOnReturn = True
Dim windowStyle As Integer: windowStyle = 2
Set wsh = VBA.CreateObject("WScript.Shell")
wsh.Run "MY cmd file", windowStyle, waitOnReturn
not suse if work for jpg, try...