PowerShell Script to request from Icinga2 Server for Pki

Hi Team,

In our environment, we are running Icinga2 Master in Ubuntu 18.04 & All remote boxes are windows workshop…We don’t have any satellites & Just using Master-Client configurations.
Usually to generate the pki ticket i do run manually on Icinga2 master for every remote server to install agent. But I have been trying to understand how do i use the existing powershell module or any script/way on windows box to request from Icinga2 Server for the Pki ticket for Agent installation? So that i can pass the ticket number to Agent MSI file.

Can someone please advise on this?

thanks,
Mani