I have a command I want to feed a variable from a txt file. The command is...
kerblist get ldap/$variablename
The textfile is named .\sitedcs.txt
The txt file will have 3-8 entries which are hostnames for the local site DCs.
I remember the FOR loop from the CMD shell days, but am sure there is a better way within native PS.