PowerShell, a Microsoft automation tool, is analyzed for bugs in its source code.The analysis reveals instances of possible null dereferencing bugs in the code.Warnings are raised by the PVS-Studio static analyzer for null dereferences.Double-checked locking pattern without volatile variable is highlighted as potentially unsafe.An issue with operator priority in expressions is pointed out by the analyzer.Incorrect format and unnecessary code branching are identified in the code.Incomplete coverage of Enum values and default values with Flags attribute are noted.Contradictory conditions in Assert statements are detected by the analyzer.The PowerShell source code examination reveals critical and minor bugs that need addressing.Reported bugs will be submitted to the developers for resolution.