PowerShell: Create a Password file

In my Azure Functions posts, I'm using a Password file which contains the password a service account. So here's how I'm creating the files needed:

PowerShell: Remove Items & Document Sets from Library

PowerShell: Remove Items & Document Sets from Library

Azure Functions, PowerShell and how to add users from a SharePoint List