The following documentation provides samples and instructions on how to get a Python script working with SPSS.
Scripts can be ran outside of the SPSS GUI through the command prompt by using Modeler Batch/Clemb. Standalone scripts can also be ran through the SPSS GUI using standalone script. Tools > Standalone Script
Modeler Batch or Clemb is included with Modeler Client. It is not a separate install. If you have Modeler client you can use the clemb.exe that is in the bin folder and run against the local server. You can find the executable here:
<path to spss program directory>\Modeler\18.0\bin\clemb.exe