UCCX doesn't have the capability to programatically change skill assignments, it can be done only manually through AppAdmin.
Within the script you can check the queue depth (using a Get Reporting Statistic step) and then queue the call to an additional, preconfigured CSQ that has extra agents already logged in. All that has to be set up in advance though.
In my opinion UCCX needs an API for modifying the skills setup so that this sort of scenario can be dealt with effectively. You'd have to submit a feature request if you think that would be useful.
Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!
As far as I know its not possible, may be I am wrong here.
The changes in the Agent Skills \competency levels has to happen through UCCX Appadmin->RmCm page, but your requirement is kind of conditional check through script and based on the outcomes dynamic changes are needed at the skill\competency levels.
May be some experts in the community can give inputs here
Are you getting this error “Installer User Interface Mode Not Supported. The installer cannot run in this UI mode. To specify the interface mode, use the -i command-line option, followed by the UI mode identifier. The value UI mode identifiers...
The below trick might come handy when you have to add a new node to a cluster but you don't have or is unsure of the security password for the publisher. This procedure has been around for ages.
1) Login into the CLI of the Publisher.