I'm looking to develop a PowerShell script that asks users for a password and if the correct password is entered users skip to a different point in the script. If an incorrect password is used or if nothing is entered users must load the standard program. I've attempted to use the timeout /T function however it won't run until after I've requested users to input the password and the clock starts after.
I'm aware I could user Group Policies and different scripts for different users however my boss is looking for this route and this route only.
I appreciate all your help!