GetComponent gets the component from the gameobject your script is attached to. You want:
foreach (GameObject io in ImportedObjects)
{
rb = io.GetComponent<Rigidbody>();
}
GetComponent gets the component from the gameobject your script is attached to. You want:
foreach (GameObject io in ImportedObjects)
{
rb = io.GetComponent<Rigidbody>();
}