Script for Selecting all Objects with 'Tag' and checking 'is Kinematic'

Use code tags !

GetComponent gets the component from the gameobject your script is attached to. You want:

foreach (GameObject io in ImportedObjects)
{
    rb = io.GetComponent<Rigidbody>();
}