private static ProcessStartInfo GetMacInfo(string command) { File.WriteAllText(OsxLaunchScriptPath, OsxLaunchScript); FileSystem.AddFileExecutablePermissions(OsxLaunchScriptPath); return(new ProcessStartInfo( "/bin/bash", string.Format( "-c \"sh {0} '{1}' '{2}'\"", OsxLaunchScriptPath, command, Directory.GetCurrentDirectory()))); }