You will need to use the stuff in the /etc/init.d/functions file, specifically the deamon() function I think.
Have older Windows systems on your network? You can give them PowerShell 5's event logging capabilities even if they run Windows 7. You might think that something as basic as PowerShell, Microsoft’s a ...