List of Script Variables

Just as a note to myself, here is basic example Powershell script which also outputs the result as JSON, this illustrates all of the values available in the result object as well as testing the script runs normally:

param($result)  
$logpath = "c:\temp\ps-test.txt"

$date = Get-Date

Add-Content $logpath ("-------------------------------------------------");
Add-Content $logpath ("Script Run Date: " + $date)
Add-Content $logpath ($result | ConvertTo-Json)