Opinions vary on this, and it gets complicated because both regular community members and diamond moderators can (and do) process low quality flags (NAA and VLQ).
The way it's supposed to work is that regular members of the community evaluate posts flagged for either of these reasons in the Low Quality Posts (LQP) review queue. However, if they don't handle them fast enough and/or there are too many for the community to handle (because there aren't enough reviewers actively reviewing), then they show up on the moderator dashboard, and we will process them.
Community members looking at flags in the LQP review queue can evaluate the flagged posts as they see fit, and have a bit more leeway than moderators do. For example, while moderators are not supposed to assess the technical veracity of an answer (because moderators are not and cannot be expected to be experts in all technologies that are on-topic for Stack Overflow), expert community members who are reviewing are encouraged to do so. This is why we give users with moderator privileges delete votes, and why three delete votes from such users will remove an answer that they deem to be useless.
Naturally, though, when the post goes through a review queue that is open to a large section of our user base, opinions will vary on how the post should be handled.
Even among diamond moderators, there are some minor variations in how such flags are interpreted and processed.
For example, if I was reviewing a NAA flag on a PowerShell answer to a batch question, there's a fairly good chance I would delete it, on the grounds that the answer isn't even in the same ballpark as the question. I see this as distinct from assessing technical merit (which I do not do as a moderator); it is plainly obvious to any observer that the answer is not an answer because it is answering an entirely different question. (There are exceptions to this. If the answer says, "You cannot do this in a batch file, but there is a solution in PowerShell" or "Using PowerShell would be better because…", then that would obviously be an answer and it should not be deleted. You can tell this by reading the answer in context of the question. Again, opinions differ on whether NAA flags should be processed in that manner, or whether the answer should be considered independently to see if it just looks/reads like an answer to a hypothetical question.)
Obviously the moderator who processed your flag doesn't feel the same way I do. Or maybe it wasn't quite as clear cut as you make it out to be. Or maybe the moderator just didn't look carefully enough at the question. You might be able to head this problem off by raising a custom flag and providing more explanation. Don't rely on "not an answer" to be enough of a clue that the answer is regarding an entirely different language than the question; tell them that explicitly.
There are, of course, general guidelines for interpreting and using NAA and VLQ flags, but that doesn't eliminate the reality of varied opinions and judgment calls. Nor should it, in my opinion. There's a reason we have humans review posts: we want them to use their brains.
If you want to always be on the safe side with flags, then you won't be able to flag "edge cases", and you'll need to stick strictly with obvious cases that fit neatly into the established and universally agreed-upon buckets. If, on the other hand, you're more interested in quality and don't mind a few declined flags here and there due to differences of opinion, then feel free to flag anything that you think is actively harmful to the site and needs to be deleted.
Looking at your examples in a bit more detail…
In the first case, although you sensibly avoided linking to the exact answer, it is very likely the case that the answer was attempting to recommend PowerShell as a preferable alternative to invoking batch commands from C#, and that would (as stated above) constitute a valid answer. In fact, in my technical opinion, it would even constitute a correct answer (even though, again, that's not supposed to be a relevant criterion).
In the second case, the answer to use a Yoda condition was just a regular old wrong answer, and those are supposed to be downvoted, rather than flagged. Perhaps the answerer misunderstood the question, and you could alleviate that confusion (perhaps even prompting them to delete their own answer and earn a Peer Pressure badge) by leaving a comment to that end. If you have sufficient privileges, feel free to cast a delete vote on useless answers (but you don't have these privileges—not yet). You almost certainly should not flag it, though, as >95% of scenarios will end in such a flag being declined.
In the case of a "code-only" answer, to which you allude, these should not be flagged. Now, I very much sympathize with the urge to flag them as "very low quality", because I also consider code-only answers to be "very low quality". However, you have to think about what flags actually do. See this answer for a more detailed explanation of why flags aren't suitable in such cases.