There are two ways to move a file/folder from a Google shared drive to My Drive.
1. Navigate to your shared drives in Google Drive.
2. Navigate to the shared drive with the file/folder content you wish to migrate. Grab the content you wish to migrate and drag it to your My Drive. You can drag it into a folder in My Drive or at the top level of My Drive.
3. When you release the drag to drop it into My Drive, you will be advised that moving the content will break the permissions on it. Click "Move".
4. The file/folder will now appear in your My Drive.
1. Follow step 1 above to navigate to your Shared Drives.
2. Navigate to the shared drive with the file/folder content you wish to migrate. Right click the file or folder and select Move To from the list of options.