Citrix monitor with Powershell SDK

When I extended monitoring using the Powershell SDK monitoring mode, the following error was reported:
Python datasource initialization error: Exception(“Could not run a test powershell script: ‘NoneType’ object has no attribute ‘stderr’”),
How do I fix it? thank you.

@Candy

Ref from external site

If code is written like this

def get_shape_of_object(obj):
  return obj.shape

value = None
print(get_shape_of_object(value))

should fix into below example

def get_shape_of_object(obj):
  if obj is None:
    return None
  return obj.shape

value = None
print(get_shape_of_object(value))

How to Fix AttributeError: ‘NoneType’ object has no attribute ‘shape’ (appdividend.com)

How to Fix the ‘NoneType’ object has no attribute: ‘text’ Error in Python - Nsikak Imoh

Cheers!

RN