public/Restart-FreeNasServer.ps1
function Restart-FreeNasServer { [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'Medium')] [Alias()] Param ( ) Begin { } Process { $Uri = "api/v1.0/system/reboot/" $post = Invoke-FreeNasRestMethod -method Post -body $post -Uri $Uri } End { } } |