Adding to a Collection Via PML

Does anyone know how to add item(s) to collections with PML as opposed to std E3D menus ?

Thanks