I'm trying to use the dbatools functions New-DbaDbUser and Add-DbaDbRoleMember to avoid creating my own version, but struggle to get the confirmation pop up window skipped/suppressed.
I have tried several combinations of -Force and -Confirm and so on, but nothing seems to be working!
I think, it wasn't DbaTools that was raising the confirmation windows hence I have added
when calling the functions:
And this resolved the issue and I no longer get prompt for confirmation! Yay!!!