def test_syntax_error_handling(windows_bash_session):
    """Test handling of syntax errors in PowerShell commands."""
    # Test invalid command syntax
    action = CmdRunAction(command="Write-Output 'Missing Quote")
    result = windows_bash_session.execute(action)
    assert isinstance(result, ErrorObservation)
    # Error message appears in the output via PowerShell error stream
    assert 'missing' in result.content.lower() or 'terminator' in result.content.lower()
Test handling of syntax errors in PowerShell commands.
tests/unit/test_windows_bash.py