Hello Horst,
What exactly do you mean by “name of main Adaxes task”?
If you mean the name of a Business Rule that executes the Custom Command, there is no possibility to retrieve its name. If the Custom Command is executed by a Scheduled Task, you can retrieve the task name using the following code:
$operation = $Context.Initiator.Username