In a powershell script, if I try to use an undefined variable, it continues on its way without indicating any warning or error that I made.
For example, the following script
echo "a"
echo $nonexistant_variable
echo "c"
gives way
a
c
Is there a way to get powerShell to tell me that the variable I'm trying to use is undefined?
source
share