def download_file_powershell(url, target):
target = os.path.abspath(target)<EOL>ps_cmd = (<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>% vars()<EOL>)<EOL>cmd = [<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>ps_cmd,<EOL>]<EOL>_clean_check(cmd, target)<EOL>
Download the file at url to target using Powershell (which will validate
trust). Raise an exception if the command cannot complete.