Well, you have to do the following steps
1.) Make a sqf file by creating a notepad textfile and changing the extension to .sqf (Name the file whatever but extension has to be .sqf)
2.) Once the .sqf is created, paste the code you want to execute (In your instance, it would be _cursorTarget = cursorTarget;
_ownerID = _cursorTarget getVariable["CharacterID","0"];
cutText [format["%1 - %2",typeOF _cursorTarget,_ownerID], "PLAIN DOWN"]
3.) Get a script executor and a battleye bypass (Script Executor to run your script and DayZ Battleye Bypass, to give you a better chance of not getting banned)
4.) When in game Open Battleye bypass, then run script executor and choose the sqf file to execute.
5.) Have Fun!
P.S. Scripts will most certainly get you banned and you will need another key so USE AT YOUR OWN RISK
I can not provide you will any of the above meterials, you will have to find them of google (Possible Chance of being a Virus) NEVER YOUTUBE (ALWAYS A VIRUS) and maybe someone on this forum.