Custom Icinga Powershell Plugin PermissionDenied


I have created a custom plugin which returns the DHCP Scope percentage in use.
While within windows machine i can executed successfully, when i run it from icinga2 i recieve the following error :

Can somebody help me on how to manage to solve it? I think is security issue by executing the plugin remotely.

the plugin code:

thank you.