How to schedule a powershell script to run and send out put to splunk from windows 8 server?
You can try to setup a scripted input (assuming your windows 8 server has Splunk forwarder installed) to run a powershell script. References available here
OR your can use Splunk's app "Splunk Add-on for Microsoft PowerShell" (I believe which is better option). See app for download and other details here