I'm trying to execute a script using UserParameters but Zabbix server is receiving an empty string.

Zabbix Server 4.4.4 in CentOS 7
Host Windows 2012
When I try to execute the custom key using Zabbix_Get, it also receives an empty string.
But, when I test the item within the server itself using the zabbix agent, it shows me the expected result.
There is no error message related to this key in the agent's log neither in the server's log.
And I can't seem to find the root cause for this behavior.
Any ideas?
Thanks
Zabbix Server 4.4.4 in CentOS 7
Host Windows 2012
Code:
UserParameter=log_dcsp_urs_p,powershell -ExecutionPolicy bypass -Command (Get-Item E:\DIR\PATH).LastWriteTime.ToString('dd-MM-yyyy HH:mm:ss')
Code:
$ zabbix_get -s 172.24.168.24 -k log_dcsp_urs_p
Code:
C:\zabbix\bin>zabbix_agentd.exe -c C:\zabbix\conf\zabbix_agentd.conf -t log_dcsp_urs_p log_dcsp_urs_p [t|17-06-2021 10:34:22]
And I can't seem to find the root cause for this behavior.
Any ideas?
Thanks
Comment