Already tried.
$cmd contains %qlserver%\store\calc.exe but does not execute within the shell-command.