How can I send a custom script via the API or OctoTools?
For example:
#Adding libraries
Add-Type -Path "C:\Test\Newtonsoft.Json.dll"
Add-Type -Path “C:\Test\Octopus.Client.dll”
#Add-Type -Path “C:\Test\Octopus.Platform.dll”
#Connection variables
$apikey = “API-SomeAPI”
$OctopusURI = “http://OctopusServer/”
#Creating a connection
$endpoint = new-object Octopus.Client.OctopusServerEndpoint $OctopusURI,$apikey
$repository = new-object Octopus.Client.OctopusRepository $endpoint
$command =
@"
(Invoke-RestMethod http://ipinfo.io/json).ip
@"
$repository.Tasks.Create # send the $command ???