You can wrap an executable file around a PowerShell script (PS1) so that you can distribute the script as an .exe file rather than distributing a “raw” script file. This eliminates the need to explain ...
System.out.println("User getting terminated from the system: " + event.getObject().getDisplayableName()); ...