1) The schannel daemon may not be running. Connect through the console (SSH or keyboard/monitor) and confirm with:
ps ax | grep schannel
2) If you are on Windows, editing and saving your script in Notepad will cause issues because the line feeds are not compatible with your Pi Linux OS. We suggest you use a Linux compatible text editor for Windows such as Notepad++.
Make sure EOL encoding is set to UNIX (LF):