Custom Inventory Rule by running uploaded .ps1
Is there any way to create a Custom Inventory Rule by running the specific uploaded file on it.
For example, I will create a test.ps1 to return an specific value and I want to store it on the Custom Inventory Rule.
ShellCommandTextReturn"cmd /s /c powershell -file "$VARIABLE\test.ps1"
Is there any way to do that?
Thanks for the Help.