PS eject CD

If CD DRIVE is mounted as e:\, this powershell command will eject it: (New-Object -comObject Shell.Application).NameSpace(17).ParseName("E:").InvokeVerb("Eject")