How do you use the word writ in a sentence?

The solicitor issued a writ against the company for the loss of business due to poor contractual work.

or

A writ is a form of written command in the name of a court or other legal authority to act, or abstain from acting, in a particular way.