You can use sapshcut.exe to connect to the SAP system through the command line. Here is an example:
sapshcut.exe -system=SID -client=100 -user=YOURUNAME -pw=Y0urP4$$
Additional command line parameters are described in SAPNote 103019 (the link requires an SAP trading platform account) or can be obtained using the command
sapshcut.exe -help
source share