STREAM command must be one of choices; found bad command

Synopsis
Reginald doesn't understand the command you specified to the STREAM() built-in function. The command and sub-operation both form the second arg to STREAM(). For example, here is how to query the current read position in a stream:

position = STREAM('C:\somefilename', 'QUERY POSITION READ')
The command above is QUERY and the sub-operation (ie, what you wish to QUERY) is the POSITION READ.

You must supply one of Reginald's supported command combinations. Reginald lists the commands that the STREAM() built-in function supports as choices in the error message. What you supplied was bad command, and that isn't supported by Reginald.

Cause
You forgot to put quotes around the command, and therefore Reginald thought that the command you specifed was a variable name where you've stored what you really want for the command. This is likely the case if you see that bad command is nothing like what you thought that you were specifying to STREAM().

Cure
If you are specifying the command directly in your call to STREAM(), then put quotes around it.

Cause
You misspelled the command. Check that bad command is exactly what you wanted, without any spelling errors.

Cure
Learn to spell, muffin-for-brains. And don't be in such a hurry to unleash your bad software upon the world.

Cause
bad command is indeed the command you want. But, Reginald doesn't support this (ie, the choice you want is not listed under choices).

Cure
Update to the latest version of Reginald at Reginald's web site.