We are rotating every weekday our tapes and would like to run a inventory job followed by an eject. I have created a powershell script.
$Library = Get-VBRTapeLibrary -name "HP 1x8 G2 AUTOLDR 3.10"
$Library | Start-VBRTapeInventory
The script inventories the tapes, but does not eject the last tape from the drive. I guess the powershell script ends before executing all commands. How could I instruct the script to wait until the "Start-VBRTapeInventory is finished?