How To Pause PowerShell (Step-By-Step Guidelines)
You may be trying to write a script that requires user input to complete, or sometimes the script requires a delay to let another process finish executing
Center To How To Pause Powershell Step By Guidelines Console Readkey Powershell Pause Until Powershell Pause
Source: technewstoday.com