@Livio Von Buren, no by default PowerShell does not tell you if you have an undeclared variable. Use Strict mode to do this. If you want this notification by default, then add the command to your Powershell profile.