Thanks
Re-wrote the script like below.
$x = $null
$x = Get-CMDeploymentPackage -DistributionPointName "DPName" -DeploymentPackageName "AppName"
If ($x -ne $null)
{
Write-Host "Distributed Already";
}
Else
{
Write-Host "Not yet Distributed";
}
Thanks!!