I\'m trying to pipe a string into a program\'s STDIN without any trailing linefeeds (unless that string itself actually ends in a linefeed). I tried googling around, bu
Do it a simple way create a cmd process and execute it
$cmdArgs = @('/c','something.exe','arg1', .. , 'arg2' , $anotherArg , '<', '$somefile.txt' ) &'cmd.exe' $cmdArgs
Worked perfect for piping information into stdin that I wanted,