So, to be clear, the script does run. Both the .vbs script and the .bat file runs the PowerShell script "keylogger.ps1". I know this because the first part of the powershell script works fine, it creates a empty file for logging keystrokes.
The problem is that the keystrokes are not being registered when the powershell script is executed via a .bat script or a .vbs script.
The keystrokes are registed if I run keylogger.ps1 via the powershell terminal, but NOT when I execute the keylogger.ps1 script via .bat or .vbs scripts.
So, my question is, has anyone gotten this to work?