Functions/New-Password.ps1


function New-Password {
    [CmdletBinding()]
    param (
    )


    $words = @(
        "Appel"
        "Banaan"
        "Balpen"
        "Circus"
        "Camera"
        "Camper"
        "Koffie"
        "Kleuren"
        "Liefde"
        "Bloemen"
        "Laptop"
        "Fietsen"
        "Visser"
        "Winter"
        "Zomer"
        "Jurken"
        "Zwemmer"
        "Strand"
        "Hotel"
        "Vlinder"
        "Paddestoel"
        "Bossen"
        "Bergen"
        "Golven"
        "Vijver"
        "Tomaat"
        "Schip"
        "Kaars"
        "Toren"
        "Wolk"
        "Steen"
        "Kamer"
        "Vlam"
        "Kasteel"
        "Honing"
        "Vleugel"
        "Kabel"
        "Zeil"
        "Inktvis"
        "Puzzel"
        "Kussen"
        "Spiegel"
        "Schilder"
        "Stoelen"
        "Scharen"
        "Knopen"
        "Bellen"
        "Schroeven"
        "Schop"
        "Ketting"
        "Tapijt"
        "Horloge"
        "Stral"
        "Kist"
        "Ballon"
        "Torpedo"
        "Ladder"
        "Gordijn"
        "Baksteen"
        "Komeet"
        "Paraplu"
        "Spijker"
        "Laars"
        "Schaats"
        "Redder"
        "Raam"
        "Tafel"
        "Metaal"
        "Staaf"
        "Potlood"
        "Sleutel"
        "Zwaard"
        "Kraan"
        "Container"
        "Zaklamp"
        "Fotolijst"
        "Schilderij"
        "Hanger"
        "Schelp"
        "Beker"
        "Liniaal"
        "Bomen"
        "Struiken"
        "Poeders"
        "Radijs"
        "Olijven"
        "Meloen"
        "Avocados"
        "Ananas"
        "Pompelmoes"
        "Sinaasappel"
        "Citroen"
        "Mandarijn"
        "Abrikoos"
        "Aardbei"
        "Framboos"
        "Guave"
        "Wortels"
        "Spinazie"
        "Broccoli"
        "Tomaten"
        "Radijzen"
        "Komkommers"
        "Pompoenen"
        "Komijn"
        "Knoflook"
        "Paprika"
        "Courgette"
        "Boontjes"
        "Peterselie"
        "Rozemarijn"
        "Tijm"
        "Oregano"
        "Dille"
        "Dragon"
        "Salie"
        "Kervel"
        "Bieslook"
        "Munt"
        "Kamille"
        "Laurier"
        "Anijs"
        "Kaneel"
        "Gember"
        "Vanille"
        "Nootmuskaat"
        "Kruidnagel"
        "Kardemom"
        "Koriander"
        "Karwij"
        "Venkel"
        "Selderij"
        "Mosterd"
        "Peper"
        "Zout"
        "Suiker"
        "Siroop"
        "Karamel"
        "Marshmallow"
        "Praline"
        "Marsepein"
        "Braam"
        "Bosbes"
        "Aalbes"
        "Kers"
        "Druif"
        "Papaja"
        "Perzik"
        "Pruim"
        "Nectarine"
        "Kiwi"
        "Mango"
        "Vrucht"
        "Bonbon"
        "Chocolade"
        "Cupcake"
        "Dropveter"
        "Kauwgom"
        "Kaneelstok"
        "Kruidnoot"
        "Lolly"
        "Napoleon"
        "Noga"
        "Paasei"
        "Pepermunt"
        "Pepernoot"
        "Salmiak"
        "Schuimpje"
        "Skittles"
        "Suikerspin"
        "Toffee"
        "Toverbal"
        "Tumtum"
        "Winegum"
        "Zoethout"
        "Zuremat"
        "Zuurstok"
        "Zuurtje"
        "Zwartwit"
        "Avocado"
        "Cranberry"
        "Dadel"
        "Granaatappel"
        "Grapefruit"
        "Kokosnoot"
        "Limoen"
        "Moerbei"
        "Olijf"
        "Peer"
        "Vlierbes"
        "Watermeloen"
        # Gereedschap toevoegen
    )


    $word = Get-Random $words

    $specialChar = Get-Random @("!", "@", "#", "$", "%", "&", "*", "(", ")", "-", "=")

    $number = Get-Random -Minimum 101 -Maximum 998


    $password = "$($word)$($specialChar)$($number)"

    return $password

}