def get_config_status():
 cmd = 'Get-DscConfigurationStatus | Select-Object -Property HostName, Status, MetaData, @{Name="StartDate";Expression={Get-Date ($_.StartDate) -Format g}}, Type, Mode, RebootRequested, NumberofResources'
 return _pshell(cmd)

def get_config_status ( ) : cmd = 'Get-DscConfigurationStatus | Select-Object -Property HostName, Status, MetaData, @{Name="StartDate";Expression={Get-Date ($_.StartDate) -Format g}}, Type, Mode, RebootRequested, NumberofResources' return _pshell ( cmd )
get the status of the current dsc configuration returns: dict: a dictionary representing the status of the current dsc configuration on the machine cli example: .