Hi @Filip
You can do using powershell, refer to the below url.
https://stackoverflow.com/questions/59668242/powershell-desktop-refresh
If the Answer is helpful, please click Accept Answer
and up-vote, this can be beneficial to other community members.