Check out this simple way of creating temporary passwords:
-join ('abcdefghkmnrstuvwxyzABCDEFGHKLMNPRSTUVWXYZ23456789$%&*#'.ToCharArray() | Get-Random -Count 8)
You can easily vary the password length: change the number for -Count to whatever password length you need.