On server side: to activate the scripting, go to transaction RZ11, and set parameter name sapgui/user_scripting.
And update the value to TRUE.
Cf details : https://help.sap.com/docs/intelligent-robotic-process-automation/desktop-studio-developer-guide/enabling-scripting-on-server-side?locale=en-US
About the author