Unknown command error in Jenkins when running Cake script using Powershell
The possible root cause of this failure is the cake version update (0.38.x --> 1.0)
You have two ways to fix this issue
Change the Argument Syntex - arguments should always be called with multi-dash syntax (e.g. --target=Foo) instead of (e.g. -target=Foo)Refer: https://cakebuild.net/docs/getting-started/upgrade
Pinning the cake version
Specified the version of Cake in the tools/packages.config fileRefer: https://cakebuild.net/docs/writing-builds/reproducible-builds/pinning-cake-version