Download shapefile whenever rhino compute endpoint is called

My grasshopper file uses shapefile which is dynamically updated. So I have a shapefile stored in aws S3 where it is updated . Whenever a rhino compute endpoint is called, I want that file to be downloaded . How do i go about making changes to compute.rhino3d for that?