This video shows how to create an API script that summons a spiritual weapon token onto the battlefield, gives it an aura, assigns it to be under a particular player’s control, and gives off a burst of holy light.
If you’d rather just run the script, you can find the code here. https://gist.github.com/nolivo/42d04f35dce85f647b9479380b7a894a Note that you do need to change the imgsrc line to the URL of an image you have in your library. The video talks a bit about this image starting at 00:00:42.
The documentation about the API objects can be found here: