Found a way to find the drive letter of sd card using it's serial number. This technique is implemented now. So it currectly opens a command prompt and navigates to the SD card. All that is need now is to execute to privilege escalation and the memory imager program.