The only way to "pass the file contents" would be through the standard input stream, but the script might want to use stdin like normal, so this isn't an option.