The OP was looking at a ColdFusion solution but did request this PowerShell example in the comments. So, please don't give negative ratings because this does not match the OP request.
@DavidBrierton, please add the PowerShell tag to your question so others may find this answer.
Note that this PowerShell script is for a modern implementation of PowerShell. I tested it on PowerShell 5.1 but it will probably work on older versions of PowerShell. The "install RSAT-AD-PowerShell feature" line might need to be tweaked if you are using an older Windows Server. I included a URL for install instructions from Windows 7 through Windows 2012 R2 if it is needed.
Another Note: PowerShell upgrades are free and you can upgrade to version 5.1 by getting the software here: https://www.microsoft.com/en-us/download/details.aspx?id=54616
The first line of code in this sample will display your installed version of PowerShell.
#display your version of PowerShell
$PSVersionTable.PSVersion
#install the RSAT-AD-PowerShell feature on Windows Server 2012 R2
#Source: https://4sysops.com/archives/how-to-install-the-powershell-active-directory-module/
Add-WindowsFeature RSAT-AD-PowerShell
# create array of usernames
$arrUserNames = @("Sta1", "Sta2", "Sta3", "Sta4", "Sta5")
# assign variable with new password
$password = "newpassword17!"
# loop over usernames and assign a new password
($arrUserNames).split(" ",[StringSplitOptions]'RemoveEmptyEntries') | foreach {
Write-Host "Changing password for: $_"
Set-ADAccountPassword -Identity $_ -Reset -NewPassword (ConvertTo-SecureString -AsPlainText $password -Force)
}