Some code snippets for the shiny powershell …
Microsoft Techlibrary: http://technet.microsoft.com/en-us/library/bb978526.aspx
# Stop a process
stop-process -processname someprogram
# Start program
[Diagnostics.Process]::Start("C:\Program Files (x86)\version0815\someprogram.exe")
Enable execution of scritps
To enable the execution of scritps start the powershell as administrator, then enter the following command:
set-executionpolicy RemoteSigned
Run a script
PS C:\Users\baecker\Documents>.\script.ps1
note the .\ as a prefix.