Moving an Object And Having Collision Work

Im using a method of moving my player character for a short period of time from a key press. If I do this, the PC will go straight through the colliders of the walls. How do I translate an object and still have the colliders respond?

rather than using Transform.Translate, which will ignore all physics, you want physics-based movement… Add a character controller to your character, and use controller.SimpleMove
or controller.Move to move your character.