you are exprienced sysadmin and you have server where react apps are running, 
I want to have functionality when server reboot happens we could run this script to restart all react apps we have on the server


we have root access to the server and we have pm2 tool installed on the server 
How we can create bash script which would execute this action?

Domains where react app is running have following paths pattern 
/home/{user}/domains for example 
/home/{user}/domains/domain1
/home/{user}/domains/domain1

real output from the server 
pwd
/home/u-kyle/domains/

u-kyle@dev:~/domains$ ls -al
total 16
drwxr-xr-x  4 u-kyle u-kyle 4096 Apr  3 08:30 .
drwxr-x--- 24 u-kyle u-kyle 4096 Mar 28 14:50 ..
drwxr-x--- 11 u-kyle u-kyle 4096 Apr  3 09:37 api-gateway-nest.alphak.react.boldporch.com
drwxr-x--- 11 u-kyle u-kyle 4096 Mar 18 15:36 broker-onboarding.alphak.react.boldporch.com

In  each domain folder we have folder ci-cd-scripts with file called restart.sh
like this 
api-gateway-nest.alphak.react.boldporch.com/ci-cd-scripts/restart.sh

Suggest a solution, script will run from root user, so have access to any folder on the server 
Then we search for all ci-cd-scripts/restart.sh locations and execute them one by one 


