Civil Harassment Restraining Orders
https://www.courts.ca.gov/1044.htm
I think this is more suitable for her situation.
Read the page thoroughly, particular about different level of restraining order e.g. emergency order, temporary order and permanent order