If you want to push an entity programmatically rather than through the UI, you can use the following snippet:
This assumes that you have at least one Flow configured to push the given entity type + bundle manually. It will return TRUE if the entity has been pushed. Please note that returning FALSE does not necessarily mean that an error occurred e.g. if the content hasn't changed since the last successful push.