I am following the installation instructions for Winlogbeat here: https://www.elastic.co/guide/en/beats/winlogbeat/current/winlogbeat-installation.html
However, I am running the code in the install-service-winlogbeat.ps1 file in Powershell ISE. The code\script returns the following error from this line: $workdir = Split-Path $MyInvocation.MyCommand.Path
Split-Path : Cannot bind argument to parameter 'Path' because it is null.
Is this due to running the code in ISE or is their a bug in the provided installation script from Elastic?