This command would be much easier to use in many cases if it had the option to block execution until a file has been selected and loaded. That way, if a script needs to perform on the file, it will know exactly when it's able to do so.
It would also be helpful to be able to retain the file's name. It could work like cp, mv, etc: if you provide the path to a directory, it will place the file in that directory with its original name. If you provide the path to a file, it would create or overwrite that file.
I have a rough version of this working. If anyone's interested I can clean up the code and publish it.