Dear Sir,
yes, you can create a simple code function called by "OnClick" property.
Code for close application:
Function void CloseApplication()
EnableShutdown(false);
CloseSession();
end
Code for shutdown pc:
Function void ShutdownSystem()
EnableShutdown(true);
CloseSession();
end