[Pt-br]
Olha tinha uma udf por aqui que ela fazia isso, mas infelizmente não estou encontrando.
Mas você pode fazer o seguinte, eu até acho melhor usar assim:

[Eng(Google Translate)]
Look there was a udf around here that she was doing this, but unfortunately I'm not finding it.
But you can do the following, I even think it's better to use it like this:
 Code:
By default it is minimized!
execRun("cmd.exe", '/c echo ola mundo') ;or execRun("cmd.exe")


Function execRun($prog, optional $args, optional $title, optional $cfg, optional $nv_process)
	if ($cfg = 1)
		$cfg = "/max"
	else
		$cfg = "/min"
	endif
	select
		case ($nv_process = 0)
			$nv_process = "/LOW"
		case ($nv_process = 1)
			$nv_process = "/ABOVENORMAL"
		case ($nv_process = 2)
			$nv_process = "/BELOWNORMAL"
		case ($nv_process = 3)
			$nv_process = "/HIGH"
		case ($nv_process = 4)
			$nv_process = "/REALTIME"
		case 1
			$nv_process = "/NORMAL"
	Endselect
	Run '%comspec% /c start '+$nv_process+' '+$cfg+' "'+$title+'" %comspec% /k ""'+$prog+'" $args"'
EndFunction