Inspec powershell for Windows

Hello, I need to execute powershell commands using inspec code.

I tried with this:

SCRIPT = <<-EOH
get-service themes
EOH

But on the final EOH it says: Use meaningful heredoc delimiters. (convention:Naming/HeredocDelimiterNaming)

I dont know what to do, Almost tried rubocop -a, rubocop -D but doesn't work.

I hope you can help me, thanks.

There's nothing wrong with your code, but if using rubocop it will complain because it wants a more meaningful name than EOH: https://rubocop.readthedocs.io/en/stable/cops_naming/#namingheredocdelimiternaming

If you change it to something like

script = <<-POWERSHELL
get-service themese
POWERSHELL

or basically anything other than EOH/EOF it will pass. I would strongly suggest instead you use cookstyle instead of rubocop (https://docs.chef.io/cookstyle.html) or get used to adding things to ignore in your .rubocop.yml file. (The cookstyle linter already disables most rubocops that don't make sense for cookbook writing)