Allow invocation of commands within a script closure