It's not possible today to create a new Application Template in SAM through SWIS. The template must already exist. Then it can be assigned to a node using SWIS. The following thread is an example of how the various SAM specific SWIS verbs can be used with PowerShell.
How can I deploy Application monitors using Powershell and the Orion SDK?