Run a powershell command through AutoHotKey script

Question:

I want to be able to run a following PowerShell command through AutoHotKey script:

I am unable to find a way to achieve this task. Please help.

Answer:

If you want to run a PowerShell script from ahk and it contains several lines and you don’t want to use an external file, this is an example how do it:

AutoHotkey code:

Source:

Run a powershell command through AutoHotKey script by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply