function($param = [])
{
$param = $this->processParameters($param);
//Setting the last action performed
$this->last_action = "list-commands";
//Defining the $url_part and the command to be executed
$url_part = "list-commands";
if (isset($param['short'])){//short parameter is set
$url_part .= "&short";
}
if (isset($param['nameonly'])){//nameonly parameter is set
$url_part .= "&nameonly";
}
//Concatenating the closing single quote
$url_part .="'";
//Concatenating the header url and $url_part to create the full url to be executed
$url_part = $this->getHeaderUrl() . $url_part;
//Calling shell_exec and returning the result array
return $this->callShellExec($url_part);
}