cant extract the file when passing the dir location from a variable but works fine if i replace with "$Dir" with actual file location
i get the below mentio