Auto Generate a password in a script

Hello.

I need to generate a password for a user in a policy script.  I'd like the password to be compliant with the password policy I've already setup in ARS, and which is generated if I use the New User wizard from the ARS MMC console.  I don't see how to do this though.

I know I can change a user's password with the following snippit of code.

$newPW = "P@ssW0rd"
$Request.Put("edsaPassword", $newPW)

My problem is how to a generate a text string that is compliant with the password policy in ARS.

I can see a builtin function called New-Password which seems to do what I want, but I can't call it or include it in a policy script.

Any help would be appreciated.

Craig.