Do you want it for a small select number of executables? Or all exes?
One hack for a select number of executables would to do
function cmd
{
$title = $host.UI.RawUI.WindowTitle
$host.UI.RawUI.WindowTitle = 'cmd.exe ' + ($args -join " ")
cmd.exe $args
$host.UI.RawUI.WindowTitle = $title
}
Then just run
cd c:
cmd /c dir /s
And see the title change
And for all the commands
Get-Command -CommandType Application | where {$_.Name -match '.exe$'} | %{
$f = @'
function {0}
{{
$title = $host.UI.RawUI.WindowTitle
$host.UI.RawUI.WindowTitle = '{0} ' + ($args -join " ")
{0}.exe $args
$host.UI.RawUI.WindowTitle = $title
}}
'@ -f ($_ -replace '.exe', '')
Invoke-Expression $f
}
And then try ping 127.0.0.1
Its hacky, YMMV