Yes, this is parameterized.
I would make the cmd variable local instead of using a shared variable.
What does GetDatabaseConnection1 do and why are you calling it at the end of the method?
•Created by Wallace And Gromit on 4/10/2023 in #help
✅ doing nothing
I still don't understand why this C# code is trying to execute powershell code, but if for some reason you need to do that, sending it to cmd.exe isn't going to work. You need to execute powershell.exe