def test_config():
 cmd = 'Test-DscConfiguration *>&1'
 ret = _pshell(cmd)
 return (ret == 'True')

def test_config ( ) : cmd = 'Test-DscConfiguration *>&1' ret = _pshell ( cmd ) return ( ret == 'True' )
tests the current applied dsc configuration returns: bool: true if successfully applied .