Hi! You asked me to use "by any means necessary" in a sentence, but you had already picked a favorite answer and closed the question. Once you do that no one can post a response to that question.
So here's an example. Someone is told to do something. For instance, a kidnapper is fleeing the scene with a child. A police chief says that if the criminal escapes, it is unlikely that the child will survive. So he instructs his officers to stop the kidnapper. When asked how does the boss want the criminal stopped, the police chief replies "by any means necessary". So it is a response that stands by itself instead of being in a sentence. It authorizes the use of violence.
By the way, I disagreed with the featured answer in which the person said, "by no means" was a command. Their example sentence was a command, but the phrase's use is not limited to commands. For instance, a company boss could tell an employee that he wants the employee to transfer to a different office that is halfway across the continent. The employee could respond, "By no means am I moving my family to X". That answer indicates a complete refusal. The employee won't move even if the boss offers him a raise or a promotion or promises that the move is temporary or offers to pay the employee's moving expenses or threatens to fire him. Whatever means the boss might use to provide his employee an incentive to move have been rejected. The employee would rather quit than move.