# Doppler run command on windows does not replace secrets when they are escaped

**URL:** <https://community.doppler.com/t/doppler-run-command-on-windows-does-not-replace-secrets-when-they-are-escaped/657>\
**Category:** Need Help\
**Created:** [June 15, 2022, 7:01pm UTC](https://community.doppler.com/t/doppler-run-command-on-windows-does-not-replace-secrets-when-they-are-escaped/657 "2022-06-15T19:01:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kartikye\_Mittal](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/kartikye_mittal/32/457_2.png) [@Kartikye\_Mittal](https://community.doppler.com/u/Kartikye_Mittal)\
**Post date:** [June 15, 2022, 7:01pm UTC](https://community.doppler.com/t/doppler-run-command-on-windows-does-not-replace-secrets-when-they-are-escaped/657/1 "2022-06-15T19:01:55Z")

</div>

Here are the commands i tried:  
`doppler run --command="echo \$SECRET"`  
doppler run --command=“echo `$SECRET”  
doppler run --command=‘echo $SECRET’

---

<div class="post-metadata">

**Author:** ![watsonian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/watsonian/32/267_2.png) [@watsonian](https://community.doppler.com/u/watsonian)\
**Post date:** [June 15, 2022, 7:47pm UTC](https://community.doppler.com/t/doppler-run-command-on-windows-does-not-replace-secrets-when-they-are-escaped/657/2 "2022-06-15T19:47:09Z")

</div>

Hi @Kartikye_Mittal!

Welcome to the Doppler Community!

Could you elaborate a little on what your Windows environment is like? Are you just using the CLI in PowerShell? Or are you using WSL2? If you’re running in a PowerShell session, try using something like this:

```auto
doppler run --command='echo %SECRET%'

```

And see if that works for you. If you’re using WSL2, I’d expect the commands you ran to work since you’re essentially running in a linux environment. I don’t have a test environment setup right now with WSL2 installed, so I’d have to get one setup for that if this is what you’re doing though!

Regards,  
-Joel
