I found the solution myself, simply by adding an auto logon:
Using this function launches an SAP logon 
/Osprey
Code:
SAPGuiUtil.AutoLogon "[SAP system description]", SAP client, "user", "[password]", "[language]"

/Osprey