I am facing problem with a powershell command in Powershell 7 Preview 6, I am not getting the error message which I should get. As you can see below.
I have imported the module again and again but looks like it's not a module issue. As you can see in the bad VM only command and no error message is showing, In good VM below it's showing the error message. Is there can be any solution for this problem.