Delete Account Custom Script - Username not passed to script?

Delete Account Custom Script - Username not passed to script?

As part of our account deletion, I configured a custom script to run against the username (under Admin->Delete/Disable Policy).  However, the command isn't being passed the username or department when I use the %username% and %department% variables (they work for all other custom scripts I've implemented with ADManager).  Is this functionality not available when an account is deleted?  Or is there something I'm missing?

Custom script I'm running:

powershell c:\AcctScripts\RemoveFDrive.ps1 -Username %userName% -Department '%department%'

Results:

Custom Script Result :C:\AcctScripts\RemoveFDrive.ps1 : Missing an argument for parameter 'username'. Specify a parameter of type 'System.String' and try again. At line:1 char:33 + c:\AcctScripts\RemoveFDrive.ps1 -Username -Department '' + ~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [RemoveFDrive.ps1], Paramet erBindingException + FullyQualifiedErrorId : MissingArgument,RemoveFDrive.ps1

                New to ADSelfService Plus?