first of all its PowerShell which comes along with windows 7 as one of its added utilities.
you have not given any detail about what have you done so far. I suspect you want something like this.
in your PowerShell script declare params preferably at top.
param([string]$UserName, [string]$Password, [string]$MachineName)
use these parmas within your powershell script wherever required. Now create a batch file from where you can pass values to these params like this.
@powershell -ExecutionPolicy Unrestricted -FILE YourPowerShellScript.ps1 "UserName" "Password" "MachineName"
i have specified Policy rights within batch file so you don't have to mention each time when you run the script on different machines. Hope it helps.