An executable and its arguments, spawned directly — so $(…), pipes and && exist only if sh -c is part of what you declared.
$(…)
&&
sh -c
const factory StackRun.command(List<String> command) = CommandRun;