2 of 2 people found this helpful
Redirect input from your password file like:
tsm login -u %TAB_USER% <pfile.txt
get-content pfile.txt | . tsm login -u $TAB_USER
For future reference this article contains many of the things needed to write scripts with TSM including using CALL and password files.