Filebeat 5.6.4 Service can't be created : Access Denied

When I am trying to install filebeat with "install-service-filebeat.ps1" , getting the below error.
Please suggest.

PS C:\Users\Arun\filebeat-5.6.4> PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-filebeat.ps1.

Security warning
Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
computer. Do you want to run C:\Users\Arun\filebeat-5.6.4\install-service-filebeat.ps1?
[D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): R
New-Service : Service 'filebeat (filebeat)' cannot be created due to the following error: Access is denied
At C:\Users\Arun\filebeat-5.6.4\install-service-filebeat.ps1:12 char:1

  • New-Service -name filebeat `
  •   + CategoryInfo          : PermissionDenied: (filebeat:String) [New-Service], ServiceCommandException
      + FullyQualifiedErrorId : CouldNotNewService,Microsoft.PowerShell.Commands.NewServiceCommand

Hi @arun3,

I'm guessing you don't have enough permissions to install new applications. You would need to run this as the administrator user.

Best regards