Hi There!
Having a look at the evaluation ver of USB Safely remove
The command line version does not see the same devices as the Win version - hence you cannot script for removal.
Is there a way to make it see the drive that you can use the Win version to disconnect?
Thanks