A woman has been ordered to carry out unpaid work after she assaulted two police officers at her Port Glasgow home.