File object itself cannot pass in command line, but you can pass file path.
Below is a sample code.
result = isfile(inputFileName);
t = readtable(inputFileName);
You can run the exe with file name as an input argument.
By default, standalone application does not show disp result in Command Prompt, so you need to uncheck the following option.