Extended exec command with file import functionality

Assigning to @mrvisser for a first round of review