When creating custom Linux Inventory scripts make sure they are executable or the inventory will not run correctly.
An example would be if the script is cust-genps, run the following command: chmod 755 ./cust-genps from the directory cust-genps is stored in.
Jonathan