Windows equivalent of $ in unix commands

It depends on the shell. The $ symbol starts a name and indicates that's a variable in most Unix shells. To do the same in Windows cmd use %OPENAI_LOGDIR%. In Windows PowerShell use the same syntax as bash, i.e. $OPENAI_LOGDIR. However if it's an environment variable in PowerShell you need to access use the env: prefix: $env:OPENAI_LOGDIR