New Execute-Process function to avoid deadlocks.