Use Registered Servers or Central Management Server to run Invoke-SqlNotebook against multiple servers.
$datetime = Get-Date -Format yyyyMMddhhmm
dir 'SQLSERVER:\SQLRegistration\Database Engine Server Group' |
WHERE { $_.Mode -ne 'd'} |
foreach {