I'm looking for resources to learn Kaseya scripting from scratch - using variables, looping, PowerShell integration, etc.
Where can I find the right source materials?
There should be a Tech Jam or two on the Kaseya University (https://kuniversity.litmos.com/)
Also, there is a document on the Help site about Agent Procedures (http://help.kaseya.com/webhelp/EN/VSA/9050000/EN_agentprocedures_R95.pdf)
One of the best ways to learn is by downloading other people's Agent Procedures and reverse engineering them. Break them apart, see what's happening, and even tweak them. That's how I learned. I don't know of other resources to get started.
Hope this helps!