How to update products stock from an external PHP file

Why is not the standard backend import sufficient for the task?