The following example executes a single job for an automation profile




# Set the unique identifier of the automation profile to execute.

$profileIdentifier = "207dd2fe-9380-4869-a6c3-39dae9a8bebb";


# Create a job and set the variables.

$job = $automation.DO_CreateJob();

$job = $automation.DO_AddVariable($job, "FirstName", "Tariq");

$job = $automation.DO_AddVariable($job, "LastName", "Razzaq");



# Execute the job.

$jobsIdentifier = $automation.DO_ExecuteJob($profileIdentifier, $job); 



NOTE: The automation profile must have web service access enabled else an access denied exception will be thrown.