yep, that would suite.
then you would use the udf after the use line like this:
Code:

label($arrDrive[$intNextDrive],$friendlyName[$intNextDrive])