Google Apps script equivalant?

Something I feel like I would miss if I switched my company from Google Workspace to Nextcloud would be not having something similar to GAPS to automate spreadsheets/documents/files in general etc