Go into NCM on the Orion server.
Then all you need to do is create a job for it.
Click on Schedule and select Create New Job. Select "Execute Command Scrip on Devices" and click Next. Then just follow the prompts.
You'll then get the following window. Click on the Command Script tab and add in your script. Fill out the other Tabs as needed and you're good to go. Just test it on one device first, then do all the others.