Automaticly close running program/process in Windows 10

I need to force a program or the process to stop so I can automatically reboot a windows 10 computer. I use to use psshutdown on a XP machine that would force the shutdown which automatically closed my PowerPoint slideshow but that doesn't seem to work with Win 10. If nothing is running then I can automatically reboot the computer using task scheduler but I need a way to force PowerPoint slideshow to close so nothing is running.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mr TorturSystem EngineerCommented:
does the old command work or not?

shutdown -r -force
you can add -t xxxx with xxxx in seconds to schedule, or task scheduler yes.
nesteyAuthor Commented:
just tried it no it does not work, I have already tried shutdown -t 0 -r -f and that didn't work. Seems like if anything is opened it will not force a reboot
Mr TorturSystem EngineerCommented:
So the issue is that the /force option does not work. But is the system really accepting the command "shutdown" on Windows 10 or not?

I found that link, which provide a lot of useless info at start, but you will find powershell command at bottom, that might help you :
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Shutdown -f -r - t 0
should work on 10, I use it.
Could you try and see if it makes a difference if you run that command from an elevated command prompt.

Also download the latest version of pstools/psshutdown.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nesteyAuthor Commented:
Shutdown -f -r - t 0  works

That does, but
shutdown -t 0 -r -f
does not? That would be most weird.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.