When asking questions about a LTspice sim, always attach your .asc file! For more complex LTspice simulations using 3rd party symbols and model files, it is best to put all the 3rd party files in a folder of their own, together with the .asc file and zip them to post here. Don't include LTspice auto-generated files (e.g. .log .raw ...) as they can get very big and will bloat the zip file.
Your M12 signal doesn't do what you intend - due to the connections to V2 it actually pulses from 0V to +12V.
How best to tackle this problem depends on whether minimising the parts count is a priority, whether or not you have other fixed (non-pulsing) supply voltages available, the permissible load on the M12 signal, how sharp a transition between Q1 on and off you require, and the required tolerance on the M12 switching threshold. e.g. what is the largest negative voltage it should NOT switch on for and what is the smallest negative voltage it MUST switch on for?