function executeAndReturnOutputFile$$1(configOrCommand, outputFileName) {
    return __awaiter(this, void 0, void 0, function* () {
        const config = asExecuteConfig$$1(configOrCommand);
        const result = yield execute$$1(config);
        return outputFileName ? result.outputFiles.find(f => f.name === outputFileName) : (result.outputFiles.length && result.outputFiles[0] || undefined);
    });
}
`execute()` shortcut that useful for commands that return only one output file or when only one particular output file is relevant.
@param outputFileName optionally user can give the desired output file name
@returns If `outputFileName` is given the file with that name, the first output file otherwise or undefined
if no file match, or no output files where generated (like in an error).