Where the password will come from ?
Someone will type it manually ?
$Password = Read-Host -AsSecureString
$UserAccount = Get-LocalUser -Name "User02"
$UserAccount | Set-LocalUser -Password $Password
For the file, if you want to restrict people from reading it, juste remove Users group from the NTFS permissions and only keep the user that will run the batch to be able to read the file.