You can very well use the FSO object to check the File existance before attempting to use the path in the Shell script.

You cannot include this check in the parameters of the Shell command.