#Powershell string interpolation caught me out
Powershell string interpolation caught me out
My password generator creates really strong passwords that always includes $
I had not recognised that the $ was being interpolated in the password string to mean a variable. After escaping the $ with ` the above code works a treat.