Chef reciepe - executing windows batch command


Hi everyone!!

I need help in writing chef reciepes. I have some jobs in Jenkins and they are done by Execute Windows batch command. I have to rewrite this commands to chef reciepe but I can’t become familiar with writing these reciepes… I need some example of this kind of “rewriting”.

For instance, this command:

D: && cd D:[some path] && pc.exe “\[some folder]” -u “admin” -p [pass] cmd /c "c: && cd C:\some folders]\ && install.bat"
need to be rewrite to chef reciepe. I can show other commands if it is needed.

I would by grateful to all kind of help