Author Topic: How to run Powershell scripts with VoiceAttakc?  (Read 1628 times)

malanar

  • Newbie
  • *
  • Posts: 3
How to run Powershell scripts with VoiceAttakc?
« on: August 29, 2022, 11:06:54 AM »
Hello all,

Trying to run a Powershell Script  through VoiceAttack to change the Default Output Sound Device on Windows.

As a PS1 file doesn't run as a BAT file, how can i make it run with VA?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: How to run Powershell scripts with VoiceAttakc?
« Reply #1 on: August 29, 2022, 11:19:38 AM »
Have you had a look at the built-in "Change Default Audio Devices" action, which is intended to do just that, without needing external scripts?


If you do need to run a PowerShell script, you could try using the "Run an Application" action to start "PowerShell" with the "With these parameters" field set to "-File " followed by the path to your script (wrapped in double quotes if it contains spaces).