$command = 'c:\somecommand.exe -msg:text1 -number:#456852,4578684'
i believe that powershell see the # as comment and not reading anything after it
Use the backtick ` should produce what you see below:
$command = 'echo test -number:`#12345678,45682' Invoke-Expression -Command $command
You must be logged in to reply to this topic.