I an trying to write Powershell script to Automate MDT Application Import. I have Multiple Deployment share. I am looking to import application to aParticular share , based on user input..I am getting the follwong error

Import-MDTApplication : Cannot bind parameter 'Path' to the target. Exception setting "Path": "Cannot find drive. A drive with the name
'DS001' does not exist."

Can anyone suggest a best code to Detect PsDrive asigned to MDT Deployment share and assign it to a variable