Hi Petre-Leonard Poiana,
Thank you for reaching out to the Microsoft Support Community.
I'm here to help with your problems.
To install the software, you should install the PSWindowsUpdate tool in advance. So, it is difficult to meet the requirements without changing the client's configuration.
If it is okay to install only PSWindowsUpdate on your client, the following site may be helpful in creating a script.
https://techcommunity.microsoft.com/t5/windows-powershell/run-windows-updates-with-powershell-remotely/m-p/3442643 https://www.partitionwizard.com/partitionmagic/powershell-windows-update.html
Best regards,
Yu