Creating custom script in frappe cloud

Check the post.

Another reference:

I hope this helps.

Thank You!