...
doc -pwr [password];
//remove password, if no password specified, then must login first to do so, otherwise must give correct password
...
After a command is entered, you App title will change accordingly, so will the status bar to indicate status
Workbook Worksheet Protection Commands
...