Scripts/Invoke-SMBeatCollector.ps1

#Requires -Version 5.1
# Resident scheduled-task host. Runs locally on the file server as SYSTEM.

$ErrorActionPreference = 'Stop'

Import-Module SMBeat -ErrorAction Stop

Watch-SMBeatCollector