stcmd apply-label -p "ProjectName" -lbl "LabelName" -u file.txt
A file name must be specified at the end of the command - the label will be temporarily attached to this file.
To delete the label:
stcmd -p "ProjectName" remove-label -lbl "LabelName"
The values for label name can be substituted for variables in a batch script as appropriate to aid automation.