PowerShell - Error Handling
You want to create a function that throws an error if a parameter is empty. Which script correctly uses
throw to do this?function Test-Param {
param([string]$input)
if (-not $input) {
???
}
Write-Output "Input is $input"
}