steph78630 answers is correct, but you may wonder why you should use a schedules task or psexec.
the reasson is that if you double click on
C:\Program Files (x86)\OCS Inventory Agent\OCSInventory.exe
the client send the inventory, but a potentially downloaded packaged will be installed as the the user which doubleclicks on the exe file.
Most programms won't be installed correctly this way.
(please correct me if i am wrong)
to mitigate this behaviour i wrote a windows script with a SED command which does the following.
1. It stops the ocsinventory service
2. it will modify the
TTO_WAIT from whatever it is to
in ocsinventory.ini under C:\ProgramData\OCS Inventory NG\Agent
3. It starts the service
so with this script a inventory will be sent immediately to server and package downloading beginns if you want to deploy a package.