Corrected Restart logic in NuGetScripts