windows: Refactor shell environment capture to use new_smol_command (#39055)
Using `crate::command::new_smol_command` on the Windows platform will
not display the PowerShell window.
Closes #39052
Release Notes:
- N/A
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
77854f4627Xiaobo Liu committed on 9/28/2025, 4:54:26 PM· committed by GitHubparent5ce7eda