# 指定文件路径$filePath="C:\path\to\your\file.txt"# 定义支持的哈希算法列表$hashAlgorithms=@("SHA256","MD5","SHA1","SHA384","SHA512")# 遍历算法列表,为每种算法计算哈希值foreach($algorithmin$hashAlgorithms) {$hash=Get-FileHash-Path$filePath-Algorithm$algorithmWrite-Output"$algorithmhash ...