Run script - can i get your help in edit

Hello,
I need to run this script for all the MAC devices in my company:

However I need your support only in how to separate the commands so I can run all the script together so each command will run one after one.

Can I get your help?

Thanks

I don’t seem to understand what your asking.
You want to separate what commands? The ones in the script?
They are in that script so that they WILL run one after another.

Or are you trying to convert the shell script to AppleScript?

Not following at all.

Sorry

I’m not very good at English, so I might be misunderstanding your intention. However
If you’re looking to run multiple shell scripts across various devices, you might want to consider using a Payload-Free Package to execute the scripts as a .pkg. That’s how I’d approach it! Hope this helps!