On a Windows Agent, it is possible to Install 'Git Bash' to use Bash commands/syntax on a windows machine.
However, Git Bash will attempt to convert the POSIX path. Therefore, Commands with 'Paths' will be converted and become malformed.
For example, an Ectool setProperty Command:
ectool setProperty "/myJob/testProperty" --value "test"
As you can see, the propertyName, contains the converted path, instead of using the relative path.
To use the '//' method, you would add another '/' to any Relative or Absolute path. Therefore the previous setProperty command would become:
ectool setProperty "//myJob/testProperty" --value "test"
This '//' will work both on Git Bash and Bash.
For setting the Environment variable, you will need to add an export of the Environment Variable at the beginning of each Step Command:
ectool setProperty "/myJob/testProperty" --value "Created"
If either of these workarounds does not work when attempting to use Git Bash, please forward the steps you took and any details to email@example.com for analysis.