Extended exec command with file import functionality

Assigning to @mrvisser for a first round of review
FYI `k` doesn't make sense in this context, and `_yargs` is not defined here