def download_file_powershell(url, target):
 target = os.path.abspath(target)
 cmd = ['powershell', '-Command', ('(new-object System.Net.WebClient).DownloadFile(%(url)r, %(target)r)' % vars())]
 _clean_check(cmd, target)

def download_file_powershell ( url , target ) : target = os . path . abspath ( target ) cmd = [ 'powershell' , '-Command' , ( '(new-object System.Net.WebClient).DownloadFile(%(url)r, %(target)r)' % vars ( ) ) ] _clean_check ( cmd , target )
download the file at url to target using powershell .