Sometimes you need to prompt the user to provide some value before you can complete your PowerShell script. You’ve got a few different options depending on what you’re asking the user to select from.
Parameters
Setting a parameter as mandatory without providing a value will prompt the user to enter one, like this:
function Invoke-AmazingPowerShellFunction { Param( ...
Continue Reading james’s Article on their blog
Prompting the User for Input with PowerShell
Sometimes you need to prompt the user to provide some value before you can complete your PowerShell script. You’ve got a few different options depending on what you’re asking the user to select from. Parameters Setting a parameter as mandatory without providing a value will prompt the user to enter one, like this: function Invoke-AmazingPowerShellFunction…
Blog Syndicated with james’s Permission
More About This Author
Array
Business Central2023.05.16Tip: Out-ExcelClipboard in PowerShell
Business Central2022.11.22Trigger a Power Automate Flow from Business Central for a Selected Record
Business Central2022.11.16Getting Onboard with Power Platform as a Business Central Developer
Business Central2022.09.07Tip: Share a Git Hooks Directory Across Your Repositories