Passing container to toCommand, resolving parameters in external command paths