I have a powershell scrip that runs as a Action on a custom command, and this scrip calls the ExecuteCustomCommand PS Function on a user.
Is there anyway i can get the output from the ExecuteCustomCommand and display that back to the user, like it does when i call the main powershell?
$result = $User.ExecuteCustomCommand($command.CommandID, $commandArguments)
And have the result contain the log messages.