Running Powershell Script #456
-
I'm trying to run a Powershell script using the custom script feature but I can't figure out why it's not working. I can run the following commands from cmd and the script works
However, when I try to run a custom script in Auto Night Mode it doesn't work. Here is my
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
you want sth like this
You're basically calling powershell and then want to pass the script path as an argument, and your actual arguments as another argument Powershell is quite finicky in terms of how it wants to be called. |
Beta Was this translation helpful? Give feedback.
you want sth like this
You're basically calling powershell and then want to pass the script path as an argument, and your actual arguments as another argument
Powershell is quite finicky in terms of how it wants to be called.
ADM wraps all arguments, so with your script configuration example, you're calling
"powershell.exe" "-file" "C:\toggle-win-terminal-theme.ps1", """One Half Light"", """One Hal…