I could be wrong, but with this script we are apparently having the same problem, which is that the path information is hard coded in the code, instead of the script generating the path through the information it extracts from the volume label.
I don't know how it works in PowerShell, but does it accept the %~d0
command?
I already used this command in CMD to get the letter of the current drive of the batch file.
If this code works in PowerShell I believe we can replace
$drv = "C:\"
by $drv = %~d0
Still, apparently we have a problem here:
$lbl = $vol.FileSystemLabel
#####$lbl = "Banana Productions - Aaron Trevor"
Since we are giving the drive a fixed volume label, instead of reading the volume label and performing actions from it.
Again, thank you so much for all your dedication and patience.
EDIT: Sorry for the ignorance, apparently after ##### there are just comments exemplifying what the command is doing in the case of SSD 01.
As I commented, I'm new to PowerShell so bear with me please hahaha