Google Drive - Copy shared with me files to team drive help

Something like this

Use rclone to find the shared files first (this assumes your remote is called drive)

rclone lsf drive,shared_with_me:

Once you've found them, copy them to your drive

rclone copy -v drive,shared_with_me:shared_files drive:unshared_files --drive-server-side-across-configs