def obfs_ps_script(script):
 strippedCode = re.sub(re.compile('<#.*?#>', re.DOTALL), '', script)
 strippedCode = '\n'.join([line for line in strippedCode.split('\n') if ((line.strip() != '') and (not line.strip().startswith('#')) and (not line.strip().lower().startswith('write-verbose ')) and (not line.strip().lower().startswith('write-debug ')))])
 return strippedCode

def obfs_ps_script ( script ) : strippedCode = re . sub ( re . compile ( '<#.*?#>' , re . DOTALL ) , '' , script ) strippedCode = '\n' . join ( [ line for line in strippedCode . split ( '\n' ) if ( ( line . strip ( ) != '' ) and ( not line . strip ( ) . startswith ( '#' ) ) and ( not line . strip ( ) . lower ( ) . startswith ( 'write-verbose ' ) ) and ( not line . strip ( ) . lower ( ) . startswith ( 'write-debug ' ) ) ) ] ) return strippedCode
strip block comments .