If you are sleeping your scripts for a long time, or have something that will take a long time to complete, you need to adjust the script timeout. Synrco defaults it to 10 minutes. Change it on a per script basis when needed.
You’re running an End of Life OS, which needs to be upgraded/replaces ASAP for security. In the mean time you should be able to upgrade powershell using chocolatey:
choco upgrade powershell -y
This will install the needed updates and components and will require a reboot. Note that even with PS upgraded to a version 5, old OSes like this will not have some of the commands in PS5 due to OS limitations.