Stroke an image in Photoshop

All I want to do is add a stroke to a jpg in Photoshop using Applescript, but I can’t seem to figure out how to do it, and I can’t find any examples online. Any help out there?

I do not have Photoshop to try myself… but I find this…

from here: https://www.adobe.com/content/dam/acom/en/devnet/photoshop/pdfs/photoshop-cc-scripting-guide-2019.pdf

Hooray that worked (after I changed the blend mode to normal so I could see the stroke on a white background). I think I phrased it in every other way possible and nested it under tell this and tell that to no avail. The syntax always gets me.

Thank you!