Stock FPSC comes with several scripts that do more or less what you're asking for.
First, right click on the enemy.
In the "Main" part of the entity's AI Scripts section, left click the three dots. Then, find pace.fpi in the "people" folder, and open that. pace.fpi basically has the AI follow waypoints until it spots the player.
Next, left click the three dots in the "Shoot" part of the entity's AI Scripts section and select strafe.fpi. This will cause the enemy to both move around and shoot.
This
guide will help probably help you with questions along this line.