Public/New-FakePatients.ps1

function New-FakePatients {
    [OutputType([PSCustomObject])]
    param(
        $Count = 1,

        [ValidateSet("Pending - Activation", "Active", "Suspended", "Pending - Removal", "Removed")]
        $Status = "Pending - Activation"
    )

    begin {
        New-FakePatientParameters -Count $Count | ForEach-Object {
            $Patient = New-Patient @_
            if ($Status -eq "Active") {
                New-PatientCalendar -Patient $Patient | Out-Null
                Set-PatientStatus -Patient $Patient -Status "Active" | Out-Null
            }
            Write-Output $Patient
        }
    }
}