diff --git a/lib/train/extras/command_wrapper.rb b/lib/train/extras/command_wrapper.rb index 558c14d9..716d1796 100644 --- a/lib/train/extras/command_wrapper.rb +++ b/lib/train/extras/command_wrapper.rb @@ -137,7 +137,7 @@ def run(script) # especially in local mode, we cannot be sure that we get a Powershell # we may just get a `cmd`. # TODO: we may want to opt for powershell.exe -command instead of `encodeCommand` - "powershell -encodedCommand #{encoded(safe_script(script))}" + "powershell -NoProfile -encodedCommand #{encoded(safe_script(script))}" end # suppress the progress stream from leaking to stderr