The answer above didn't help me when I found it via Google. A Stackoverflow answer led me in the right direction.
powershell -noexit "& ""C:\my_path\yada_yada\run_import_script.ps1"""
http://stackoverflow.com/questions/2035193/how-to-run-a-powershell-script
Referencing the path to Powershell is usually unnecessary. Using a variable for the Splunk install location also might be unnecessary. Regardless of a 32/64 bit installation, it should always bee under C:\Program Files . As for drive letter, the average user doesn't install programs to drives other than where Windows is installed, and Windows is almost always installed on C: .
... View more