So I'm trying to run the following code snippet:
start-process -Filepath "c:\support\mbbr.exe" -ArgumentList 'register','–key:ABCDE-ABCDE-ABCDE-ABCDE' -Wait -NoNewWindow
However it stops processing the argument at the colon as it treats it as a reserved character. When I try to escape it with `, it treats the escape character as a normal character and won't let me escape:
Error: –key is an invalid option.
The syntax of register command is:
register [-key:<prodkey>]
I'm out of ideas, anyone got any clues?