How to salt a password using PowerShell and how to store the salt? [migrated]

I was looking about how to salt a password in PowerShell, as SHA512 is not the safest way to store them, I want to add a salt to reduce bruteforcing.

Is there any way to add a salt to a password and then store it, to next at the moment ton authenticate use the appropiate salt?