Some versions of the editor allow you to view the relationship status of NPCs. You can set affinity to the maximum level to instantly trigger companion romance/quest perks.
By following this guide and exploring the world of Fallout 4 save editing, you'll be well on your way to creating a customized gaming experience that suits your every need. Happy editing!