private/Tests/Test-CommandCurl.ps1
|
function Test-CommandCurl { <# .SYNOPSIS Returns $true when curl.exe is available in the current session PATH. .NOTES Author: David Segura Company: Recast Software curl.exe ships with Windows 10 1803+ and is required by Install-MicrosoftWindowsAdk25H2, Install-MicrosoftWindowsAdk26H1, and Install-MicrosoftDeploymentToolkit for downloading installers. The explicit .exe suffix is used to avoid matching the PowerShell Invoke-WebRequest alias 'curl'. Dependencies: Module Functions: Install-MicrosoftDeploymentToolkit, Install-MicrosoftWindowsAdk25H2, Install-MicrosoftWindowsAdk26H1 Executables: curl.exe Windows Features: Windows ADK WinPE Addon #> [OutputType([bool])] param () return ($null -ne (Get-Command -Name 'curl.exe' -ErrorAction SilentlyContinue)) } |